httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Tagliapietra <>
Subject [users@httpd] Apache with chroot + fcgid php wrapper
Date Tue, 24 Aug 2010 20:59:42 GMT
Hi, this is what i'm trying to do, a chrooted apache install,so, i've
setup /webroot with var/log var/lib etc tmp etc..
I've got apache running fine, i've changed its pid file etc.

Now the troubles are working on fcgid, so, i've copied necessaried
libraries, executables, created socket path inside the dir and the php

Now, here are my problems, if i set the php wrapper into the
virtualhost, i set the path inside the jail (for example, if it's
/jail/var/www, i put /var/www as for docroot that i set /var/www and
it works with /jail/var/www) but it don't works, it says.

[Tue Aug 24 05:36:40 2010] [notice] mod_fcgid: call /var/www/index.php
with wrapper /var/www/php5.cgi
[Tue Aug 24 05:36:40 2010] [warn] [client] (104)Connection
reset by peer: mod_fcgid: error reading data from FastCGI server
[Tue Aug 24 05:36:40 2010] [error] [client] Premature end of
script headers: index.php
[Tue Aug 24 05:36:43 2010] [notice] mod_fcgid: process
/var/www/index.php(14815) exit(communication error), terminated by
calling exit(), return code: 255

but if i run chroot /jail/ /usr/bin/php5-cgi it works fine, so, the
jail works, but it seems that the fcgid script it's runned outside
(because i have to set path to /jail/var/www) and also because it not
wotks with jailed php.

Any idea?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message