PDA

View Full Version : Php4 CGI - 500 Internal Server Error



apichault
09-16-2008, 04:01 AM
Hello,

I have the following configuration:

#PHP settings. default_php possible values - 4 or 5
default_php=5
php4_cli=no
php4_cgi=yes
php5_cli=yes
php5_cgi=no

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.2


When I try to put PHP4 for 1 user with a .htaccess file,

<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
AddHandler x-httpd-php4 .php
</FilesMatch>
I've always a "500 Internal Server Error" with all my php files.

File or directory has not chmod 755.
File or directory is owned by the user.

I'm lost...
Any Idea ?

smtalk
09-16-2008, 06:44 AM
Check /var/log/suphp.log and /var/log/httpd/domains/domain.com.error.log.

apichault
09-16-2008, 07:01 AM
Hello,

Thanx for your answer.
I checked suphp.log and i found this:

[warn] Directory "/home/xxxxx/domains/xxxxxxxxx.com" is writeable by group
So, I changed the chmod to 711 and now, it's work.

Thank you !

A.