... | ... | @@ -11,13 +11,13 @@ Conseil avant de débuter l'installation : |
|
|
|
|
|
**Installation APACHE**
|
|
|
Première étape est de mettre à jour notre Os :
|
|
|
* yum -y update
|
|
|
`yum -y update`
|
|
|
Installation Apache HTTP :
|
|
|
> yum install httpd
|
|
|
`yum install httpd`
|
|
|
On démarre le service :
|
|
|
> systemctl start httpd.service
|
|
|
`systemctl start httpd.service`
|
|
|
Afin de vérifier que le service tourne, voici la commande :
|
|
|
> systemctl status httpd.service
|
|
|
`systemctl status httpd.service`
|
|
|
Résultat :
|
|
|
`● httpd.service - The Apache HTTP Server
|
|
|
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
|
... | ... | @@ -47,17 +47,17 @@ Oct 12 16:56:38 vps584938.ovh.net systemd[1]: Reloaded The Apache HTTP Server. |
|
|
Oct 14 03:14:02 vps584938.ovh.net systemd[1]: Reloaded The Apache HTTP Server.
|
|
|
`
|
|
|
Activation du service à chaque démarrage :
|
|
|
> systemctl enable httpd.service
|
|
|
`systemctl enable httpd.service`
|
|
|
|
|
|
|
|
|
**Installation de la Base de donnée**
|
|
|
Pour la base de donnée nous avons choisie MariaDB dont les fondateurs sont ceux de MySQL.
|
|
|
|
|
|
> yum install mariadb-server mariadb
|
|
|
> systemctl start mariadb.service
|
|
|
> systemctl enable mariadb.service
|
|
|
`yum install mariadb-server mariadb`
|
|
|
`systemctl start mariadb.service`
|
|
|
`systemctl enable mariadb.service`
|
|
|
Afin de vérifier que le service tourne, voici la commande :
|
|
|
> systemctl status mariadb
|
|
|
`systemctl status mariadb`
|
|
|
Resultat :
|
|
|
`● mariadb.service - MariaDB database server
|
|
|
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
|
... | ... | @@ -86,7 +86,7 @@ MySQL/MariaDB dispose de l’utilitaire mysql_secure_installation pour assurer l |
|
|
|
|
|
Voici les commandes :
|
|
|
|
|
|
> mysql_secure_installation
|
|
|
`mysql_secure_installation`
|
|
|
`NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL
|
|
|
MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP
|
|
|
CAREFULLY!
|
... | ... | @@ -150,19 +150,19 @@ Thanks for using MariaDB!` |
|
|
|
|
|
**Connection à MariaDB**
|
|
|
Dorénavant, il faut se connecter au moniteur MySQL/MariaDB avec le mot de passe que l’on vient de définir un peu plus haut.
|
|
|
> mysql -u root -p
|
|
|
`mysql -u root -p`
|
|
|
|
|
|
**Installaion PHP**
|
|
|
|
|
|
> yum install epel-release yum-utils -y
|
|
|
> yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
|
|
|
> yum-config-manager --enable remi-php72
|
|
|
`yum install epel-release yum-utils -y`
|
|
|
`yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm`
|
|
|
`yum-config-manager --enable remi-php72`
|
|
|
|
|
|
Installation PHP 7.2 avec les dépendances :
|
|
|
> yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql -y
|
|
|
`yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql -y`
|
|
|
|
|
|
Vérification de la version installée :
|
|
|
> php -v
|
|
|
`php -v`
|
|
|
Résultat :
|
|
|
`[MasterRIE@vps584938 ~]$ php -v
|
|
|
PHP 7.2.11 (cli) (built: Oct 10 2018 10:00:29) ( NTS )
|
... | ... | @@ -185,20 +185,20 @@ Attention : Après le test SUPPRIMER le fichier info.php |
|
|
|
|
|
Cette installation va nous servir afin de faciliter l'administration de notre base de donnée.
|
|
|
Pour commencer installons le repository EPEL
|
|
|
> rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
|
|
|
`rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm`
|
|
|
Mettre à jour le system
|
|
|
> yum -y update
|
|
|
> yum install phpmyadmin
|
|
|
`yum -y update`
|
|
|
`yum install phpmyadmin`
|
|
|
|
|
|
Autoriser notre ip dans le fichier suivant :
|
|
|
> vi /etc/httpd/conf.d/phpMyAdmin.conf
|
|
|
`vi /etc/httpd/conf.d/phpMyAdmin.conf`
|
|
|
|
|
|
Require ip 127.0.0.1 par Require ip votreadresse
|
|
|
Allow from 127.0.0.1 par Allow from votreadresse
|
|
|
* Require ip 127.0.0.1 par Require ip votreadresse
|
|
|
* Allow from 127.0.0.1 par Allow from votreadresse
|
|
|
|
|
|
|
|
|
Après toute cette installation on redémarre le service httpd :
|
|
|
> systemctl restart httpd.service
|
|
|
`systemctl restart httpd.service`
|
|
|
|
|
|
**** Bonne installation !!!****
|
|
|
|
... | ... | |