Php4 CGI - 500 Internal Server Error

apichault

Verified User
Joined
Jan 15, 2008
Messages
14
Hello,

I have the following configuration:
Code:
#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,
Code:
<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 ?
 
Last edited:

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,339
Location
LT, EU
Check /var/log/suphp.log and /var/log/httpd/domains/domain.com.error.log.
 

apichault

Verified User
Joined
Jan 15, 2008
Messages
14
Hello,

Thanx for your answer.
I checked suphp.log and i found this:
Code:
[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.
 
Top