Quick question concerning the chroot option, is it the equiv if a
linux chroot where you need to have a copy of files/libraries etc in
your chroot dir or does it act like open_basedir option in php.
If it only acts like open_basedir and doesn't require a systems files
to be copied into the chroot enviroment then i have a problem with
getting it to work.
files i'm working with:
/home/bobby/public_html/index.php (bobby:bobby)
/var/www/phpinfo.php (bobby:bobby)
My system:
debian 6.0
apache2
libapache2-mod-suphp
When I try enable the "chroot" option in /etc/suphp/suphp5.conf,i get
(Internal Server Error) and log entries as you can see below
So first i tried it with the userdir option enabled in apache2. i
tried chroot as
chroot=/home
chroot=${HOME}
chroot=${HOME}/public_html
the error log /var/log/apache2/error.log:
SoftException in Application.cpp:537: Could not execute script
"/home/bobby/public_html/index.php"
Caused by SystemException in API_Linux.cpp:465: chdir() failed: No
such file or directory
Premature end of script headers: index.php
the /var/log/suphp/suphp.log just says ] Executing
"/home/bobby/public_html/index.php" as UID 1001, GID 1001
I then try chroot as
chroot=/var/www
and try going to /phpinfo.php and i get pretty much the same error
with the directory replaced with /var/www/phpinfo.php (note the user
was bobby:bobby for this file as well).
Regards
Wolfric
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp