PHP¶
Installer PHP¶
$ sudo eopkg install php
$ which php
/usr/bin/php
Fichier de configuration (par défaut):¶
/etc/php/php.ini
Fichiers de configuration (personnel):¶
Créer le répertoire /etc/httpd/conf.d/
puis y mettre ses propres *.conf
/etc/httpd/conf.d/php.conf
Fichiers log:¶
/var/log/php-fpm.log
Redémarrer Apache et PHP:¶
$ sudo systemctl restart httpd && sudo systemctl restart php-fpm
Démarrer PHP au boot:
$ systemctl enable php-fpm
Status du service php:
$ systemctl status php-fpm
● php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor pr>
Active: inactive (dead)
Dernière mise à jour:
May 7, 2020