Help with SuExec and FastCGI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

After having real issues with Apaches 2.2 Chroot feature and Joomla I am going to see if I have better luck with SuExec and FCGI.  I believe I have it configured correctly but am receiving the following error:

[Fri May 13 08:29:29 2011] [warn] [client XXXXXXXXXXX] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Fri May 13 08:29:29 2011] [error] [client XXXXXXXXXX] Premature end of script headers: test.php

Within my vhost configuration I have set:

<VirtualHost *:80>

    ServerAdmin webmaster@xxxxxxxxxxxxxx
    ServerName www.somehost.co.uk
    DocumentRoot /www/beta.somehost.co.uk/www

   <IfModule mod_fcgid.c>

      SuexecUserGroup somehost.co.uk somehost.co.uk

      <Directory /www/beta.somehost.co.uk/www/>
         AddHandler fcgid-script .php
         FCGIWrapper /www/fcgi-scripts/somehost.co.uk/php.fcgi .php
         Order deny,allow
         Allow from all
         AllowOverride All
         Options +ExecCGI
      </Directory>

   </IfModule>

</VirtualHost>

and the contents of php.fcgi:

#!/bin/sh
export PHP_FCGI_CHILDREN=1
export PHP_FCGI_MAX_REQUESTS=10
export PHPRC=/etc
exec /usr/local/php/bin/php

and on checking suexec.log it appears to be executing okay:

[2011-05-13 08:29:29]: uid: (9000/somehost.co.uk) gid: (9000/somehost.co.uk) cmd: php.fcgi

Any help gratefully appreciated.
-- 
Thanks, Phil

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux