[mod-security-users] problems with apache2 + chroot + httpd.pid
Brought to you by:
victorhora,
zimmerletw
|
From: Raphael K. <di...@ko...> - 2004-12-12 15:41:09
|
Hello, First of all, thank you Ivan for this software. I have a small problem setting up chroot for Apache2.0.52. The setup is as follows: - apache2 is located at /usr/local/sbin/apache2.0.52/ - the jail is at /chroot/ust/local/sbin/apache2.0.52/logs in httpd.conf: - the pid location is PidFile /usr/local/sbin/apache2.0.52/logs/httpd.pid - chroot is SecChrootDir /chroot 1) First case If I use this configuration, Apache2 starts well and chroot is setup [taken from error.log] [Sun Dec 12 16:05:57 2004] [notice] mod_security: chroot checkpoint #1 (pid=18071 ppid=18069) [Sun Dec 12 16:05:57 2004] [notice] mod_security: chroot checkpoint #2 (pid=18072ppid=18071) [Sun Dec 12 16:05:57 2004] [notice] mod_security: chroot successful, path=/chroot [Sun Dec 12 16:05:57 2004] [notice] Apache configured -- resuming normal operations however, when I try to stop apache (bin/apachectl stop), I get the following error: httpd (no pid file) not running 2) Second case If I modify httpd.conf to point the pid file to /chroot/usr/local/sbin/apache2.0.52/logs/httpd.pid I get the following error [Sun Dec 12 16:38:08 2004] [notice] mod_security: chroot checkpoint #1 (pid=18110 ppid=18108) [Sun Dec 12 16:38:08 2004] [notice] mod_security: chroot checkpoint #2 (pid=18111 ppid=18110) [Sun Dec 12 16:38:08 2004] [notice] mod_security: chroot successful, path=/chroot [Sun Dec 12 16:38:08 2004] [error] (2)No such file or directory: could not create /chroot/usr/local/sbin/apache2.0.52/logs/httpd.pid [Sun Dec 12 16:38:08 2004] [error] httpd: could not log pid to file /chroot/usr/local/sbin/apache2.0.52/logs/httpd.pid Can somebody please shed some light on the mistake I am making ? (is it a permission problem on the /chroot/usr/local/sbin/apache2.0.52/logs/ fodler ?) Thank you very much in advance. |