Apache with chroot + fcgid php wrapper

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

 



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
wrapper..

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 127.0.0.1] (104)Connection
reset by peer: mod_fcgid: error reading data from FastCGI server
[Tue Aug 24 05:36:40 2010] [error] [client 127.0.0.1] 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: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