Internal Server Error enabling SuexecUserGroup
I am having this error "Internal Server Error" executing a php script (
<virtualhost 106.187.49.49:9880="">#SuexecUserGroup "#500" "#501"
ServerAdmin admin@jillhazel.co.cc
ServerName jillhazel.co.cc
ServerAlias www.jillhazel.co.cc
DocumentRoot /home/philippines/public_html/jillhazel.co.cc/
ScriptAlias /cgi-bin/ /home/philippines/public_html/jillhazel.co.cc/cgi-bin/
ErrorLog /home/philippines/logs/jillhazel.co.cc.error.log
CustomLog /home/philippines/logs/jillhazel.co.cc.access.log combined
#PHP_Fix_Pathinfo_Enable 1
<directory home="" philippines="" public_html="" jillhazel.co.cc="">Options +ExecCGI
AllowOverride All
AddHandler fcgid-script .php
FCGIWrapper /home/philippines/fcgi-bin/php-fcgi .php
Order allow,deny
Allow from all</directory></virtualhost>
I’m using:
CentOS 6.0
Apache 2.2.15
PHP 5.3.3
mod_fcgid-2.2-11
Error log says:
[Thu Jan 12 08:41:33 2012] [warn] [client 115.85.27.2] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Thu Jan 12 08:41:33 2012] [error] [client 115.85.27.2] Premature end of script headers: s.php
s.php script content:
/home/philippines/fcgi-bin/php5.fcgi content:
#!/bin/bash
PHPRC=$PWD/../etc/php5
export PHPRC
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
PHP_FCGI_CHILDREN=8
export PHP_FCGI_CHILDREN
umask 022
SCRIPT_FILENAME=$PATH_TRANSLATED
export SCRIPT_FILENAME
exec /usr/bin/php-cgi
Guys, please help.
Thank you in advance.