Gentoo : PHP + mod_suphp = Internal Server Error
- Lundi 5 octobre 2009
- Publié dans Hébergement . Linux
- Par Boris HUISGEN
- Ecrire
Encore une petite boulette de la team Gentoo pour mod_suphp en version 0.7.1 : le port installe un fichier de configuration non valide, ce qui provoque une inexécution de tous les scripts PHP ! C’est très fâcheux pour un module qui justement sécurise l’exécution PHP…
Il faut donc corriger le bloc suivant dans /etc/suphp.conf :
[handlers] ;Handler for php-scripts x-httpd-php=php:/usr/lib/php5/bin/php-cgi x-httpd-php5=php:/usr/lib/php5/bin/php-cgi x-httpd-phtml=php:/usr/lib/php5/bin/php-cgi ;Handler for CGI-scripts x-suphp-cgi=execute:!self
par celui-ci :
[handlers] ;Handler for php-scripts x-httpd-php="php:/usr/lib/php5/bin/php-cgi" x-httpd-php5="php:/usr/lib/php5/bin/php-cgi" x-httpd-phtml="php:/usr/lib/php5/bin/php-cgi" ;Handler for CGI-scripts x-suphp-cgi="execute:!self"
Vous noterez donc les doubles quotes en plus.

Pas encore de commentaires.