07-05-2020
-La section Distributions regroupe Solus, Mint et Debian -Section Windows
This commit is contained in:
61
docs/Distributions/solus/php.md
Normal file
61
docs/Distributions/solus/php.md
Normal file
@@ -0,0 +1,61 @@
|
||||
# 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)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user