Linode Forum Index Linode Forum
Linode Community Forums
 


Internal Server Error enabling SuexecUserGroup

Click here to go to the original topic

 
       Linode Forum Index -> Web Servers and Web App Development
Author Message
hardwire



Joined: 28 Nov 2011
Posts: 8

Posted: Wed Jan 11, 2012 8:04 pm    Post subject: Internal Server Error enabling SuexecUserGroup  

Hi,

I am having this error "Internal Server Error" executing a php script (http://jillhazel.co.cc:9880/s.php) when the SuexecUserGroup is enabled but if I comment the SuexecUserGroup line everything works fine:
Code: <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:
Code: [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:
Code: <?php
system('id');
phpinfo();

/home/philippines/fcgi-bin/php5.fcgi content:
Code: #!/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.
Back to top  
 
       Linode Forum Index -> Web Servers and Web App Development
Page 1 of 1