Outras línguas English ; Français ; Português (Portugal) |
Contents
Introdução

OS TEXTOS SÃO COPIADOS DA VERSÃO FRANCESA, com um tradutor automático.
Pode contribuir e permitir uma versão mais compreensível.
LAMP É um acrônimo :
- Linux : O sistema operativo
- Apache : O servidor da Web
- MySQL : O servidor da Base de Dados
- PHP : A linguagem «script»
With LAMP, you can set up a Web server, hosting a dynamic website written in PHP, while searching for data in a MySQL/Mariadb database.
Some distributions, including Mageia, offer a metapackage called LAMP to install everything in a single command.
Mageia made the choice as of its version 2 to privilege the fork of Mysql which is named Mariadb. You will not notice any noticeable difference between these two software.
Instalação
Com o pacote de metados
Install the task-lamp metapackage to install all associated services (Apache, MySQL/Mariadb and PHP)
urpmi task-lamp
Or simply with Mageia's CCM.
Importante
This method is specific to Mageia 6.
(It can also work for previous versions of Mageia).
Instruções
Once "task-lamp" is installed.
Using the "console", everything that follows will be done as "root"
Configuração
To start the "lamp" service
systemctl start httpd
and
systemctl enable mysqld
then type
systemctl start mysqld
Creation of the root password for mariadb (for security reasons different from the system root).
mysql -u root
You will see: (Welcome to the MariaDB..............)
In a text doc, type this (by changing the part "your_password")
and paste it in the "console":
SET password FOR root@localhost = password('your_password');
FLUSH privileges;
quit;
The password creation is done
you will see this line:
quit;
(press "ENTER")
proteja o programa
Digite na consola:
mysql_secure_installation
Enter current password for root (enter for none) (Enter the current root password (mariadb) or just type "enter" if no password): Change the root password? [Y/n] n <--- here "n" if you want to keep the password root or "y" to change it ... skipping. all of the following keep the default choices (of course you can not follow the default choice free to you) Remove anonymous users? [Y/n] y ... Success! Disallow root login remotely? [Y/n] y ... Success! Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reload privilege tables now? [Y/n] y ... Success! Cleaning up... All done! If you've completed all of the above steps, your MariaDB installation should now be secure. Thanks for using MariaDB!
Security's over..
Add rights "chmod" to read and write about this file:
/var/www/html/
As hiperligações
Abra no navegador: http://127.0.0.1/
Se a página exibe: "ISto funcionou!" apache está bem instalado.
Access to phpmyadmin: http://127.0.0.1/phpmyadmin
Welcome to phpMyAdmin
login: root
pass:
Access to the pages: http://127.0.0.1/
Access to the working file is here: /var/www/html/
Adicionar SSL
Try to open first:
https://127.0.0.1/
If you get an "error" page.
Add the package from your CCM:
apache-mod_ssl
Re-launch:
https://127.0.0.1/
Confirm security exception.
There it is, it's over.
Cópia do tutorial está disponível aqui:
tutoriel-configuration-d-un-serveur-lamp