diff --git a/HowtoCheckconf.md b/HowtoCheckconf.md index 4742a130..9605d304 100644 --- a/HowtoCheckconf.md +++ b/HowtoCheckconf.md @@ -215,3 +215,11 @@ $ charybdis-ircd -conftest ~~~ # cupsd -t -c test.conf ~~~ + +# PHP-FPM + +Changer la version en fonction. + +~~~ +# php-fpm7.3 -t +~~~ diff --git a/HowtoPHP.md b/HowtoPHP.md index 4270a2d6..c4de32db 100644 --- a/HowtoPHP.md +++ b/HowtoPHP.md @@ -153,6 +153,12 @@ Fichiers de configuration : └── xsl.ini ~~~ +On peut valider une configuration avec le binaire php-fpmx.y + +~~~ +# php-fpm7.3 -t +~~~ + ### Configuration de base (php.ini) Il existe un fichier `php.ini` distinct suivant l’utilisation de @@ -521,7 +527,7 @@ via PHP-CLI. On pourra utiliser PHP-CGI pour le tromper, c'est notamment le cas de Magento. ~~~ -$ HTTP_HOST="www.monsite.com" strace php-cgi index.php +$ HTTP_HOST="www.monsite.com" strace php-cgi index.php ~~~ Par exemple, on peut récupérer les requêtes MySQL ainsi. @@ -608,7 +614,7 @@ Installation : ~~~ > *Note* : Pour Debian 8 : -> +> > ~~~ > # aptitude install gdb php5-dbg > ~~~ @@ -748,7 +754,7 @@ location ~ \.(hh|php)$ { fastcgi_keep_conn on; #fastcgi_pass 127.0.0.1:9000; fastcgi_pass unix:/var/run/hhvm/sock - fastcgi_index index.php; + fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } @@ -798,7 +804,7 @@ ISO-8859-15`. Il est conseillé d'utiliser PDO_MySQL, mais une méthode rapide est d'utiliser l'extension mysqli : La plupart des fonctions sont identiques avec mysqli... il suffit -de remplacer `mysql_` par `mysqli_` ! +de remplacer `mysql_` par `mysqli_` ! Quelques exceptions :