Files
Bruno 21 6103008715 07-05-2020
-La section Distributions regroupe Solus, Mint et Debian
-Section Windows
2020-05-07 13:43:00 +02:00

62 lines
794 B
Markdown

# PHP
#### Installer PHP
```bash
$ sudo eopkg install php
$ which php
/usr/bin/php
```
#### Fichier de configuration (par défaut):
```bash
/etc/php/php.ini
```
#### Fichiers de configuration (personnel):
Créer le répertoire `/etc/httpd/conf.d/` puis y mettre ses propres *.conf
```bash
/etc/httpd/conf.d/php.conf
```
#### Fichiers log:
```bash
/var/log/php-fpm.log
```
#### Redémarrer Apache et PHP:
```bash
$ sudo systemctl restart httpd && sudo systemctl restart php-fpm
```
Démarrer PHP au boot:
```bash
$ systemctl enable php-fpm
```
Status du service php:
```bash
$ 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)
```