Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jan 11, 2012 9:04 pm 
Offline
Senior Newbie

Joined: Mon Nov 28, 2011 11:59 pm
Posts: 13
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group