deltatux
February 21st, 2010, 04:48 PM
Hey guys,
This is really really annoying me. I need to chroot my Apache 2 install but it just won't work. If I turn off Apache 2's mod_chroot then it works.
This is the error:
[notice] mod_chroot: changed root to /chroot/httpd.
[alert] (2)No such file or directory: Can't chdir to /chroot/httpd
The documentroot is set to /var/www so I mounted /var/www to /chroot/httpd/var/www.
I also mounted /home to /chroot/httpd/home and /etc/passwd to /chroot/httpd/etc/passwd.
However, here's my directory listing for /chroot/httpd:
http://img14.imageshack.us/img14/3559/chroothttpddir.png
Thanks,
deltatux
This is really really annoying me. I need to chroot my Apache 2 install but it just won't work. If I turn off Apache 2's mod_chroot then it works.
This is the error:
[notice] mod_chroot: changed root to /chroot/httpd.
[alert] (2)No such file or directory: Can't chdir to /chroot/httpd
The documentroot is set to /var/www so I mounted /var/www to /chroot/httpd/var/www.
I also mounted /home to /chroot/httpd/home and /etc/passwd to /chroot/httpd/etc/passwd.
However, here's my directory listing for /chroot/httpd:
http://img14.imageshack.us/img14/3559/chroothttpddir.png
Thanks,
deltatux