Partie VI. Installer PhpMyAdmin - Sources
Précédent ACCUEIL Suivant

VI. INSTALLER PHPMYADMIN - SOURCES

4.1 - Paramétrer Php FPM

La modification du fichier "10-centreon.conf" est facultative. Elle me permet, ici, de désactiver une redirection automatique sur l'interface Web de Centreon.

Ligne n° 44 : # RedirectMatch ^/$ /centreon (Ligne à commenter)

Figure 1 - index.html

index.html

Figure 2 - php.conf

php.conf

Figure 3 - 00-mpm.conf

00-mpm.conf

Figure 4 - welcome.conf

welcome.conf
# systemctl restart httpd24-httpd

Figure 5 - Php version

Php version

4.2 - Installer PhpMyAdmin à partir des sources

Le dépôt "EPEL" doit être installé.

# yum install rh-php72-php-bcmath rh-php72-php-tidy t1lib caddy compat-libtidy \
  libzip
# cd /usr/share
# wget https://files.phpmyadmin.net/phpMyAdmin/5.0.0/phpMyAdmin-5.0.0-all \
  -languages.tar.gz
# tar xvzf phpMyAdmin-5.0.0-all-languages.tar.gz
# mv phpMyAdmin-5.0.0-all-languages phpMyAdmin
# rm phpMyAdmin-5.0.0-all-languages.tar.gz

Figure 6 - phpMyAdmin.conf

phpMyAdmin.conf
# mysqladmin -u root -p create phpmyadmin
# mysql -u root -p
  [mysql]> CREATE USER 'pma'@'localhost' IDENTIFIED BY 'Votre mot de passe';
  [mysql]> GRANT ALL ON phpmyadmin.* TO 'pma'@'localhost';
  [mysql]> flush privileges;
  [mysql]> exit
# cd /usr/share/phpMyAdmin/sql
# mysql -u pma -p phpmyadmin < create_tables.sql
# cd /
# cp /usr/share/phpMyAdmin/config.sample.inc.php /usr/share/phpMyAdmin/ \
  config.inc.php
# vi /usr/share/phpMyAdmin/config.inc.php

Figure 7 - PhpMyAdmin : config.inc.php

PhpMyAdmin config.inc.php
# systemctl restart httpd24-httpd

4.3 - Les tables de Centreon

Lorsque "Centreon IMP" sera installé, les tables suivantes pourront être sauvegardées :

Ces tables contiennent des commandes et services pour des systèmes linux, windows, cisco, ...

note Note

Veuillez noter que le répertoire "/usr/share/centreon/www/img/media/ppm" contient des images par défaut lors de l'installation des "Plugins packs". Les droits sont "apache:apache" et "775".


Auteurs : Eddy et Stéphane Maas / 2013-2023
Précédent ACCUEIL Suivant