Doc sur Solus

This commit is contained in:
2019-05-15 12:34:13 +02:00
parent 0ee83be15e
commit b53c18f1ef
3 changed files with 185 additions and 0 deletions

61
docs/solus/php.md Normal file
View 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)
```