Hi,
I'm getting this error when I try to run mod_security in chroot environment.
The first bit is from the error_log file
[Mon Oct 17 15:15:23 2005] [notice] mod_security: chroot checkpoint #1 (pid=11846 ppid=11844)
[Mon Oct 17 15:15:23 2005] [notice] mod_security: chroot checkpoint #2 (pid=11847 ppid=11846)
[Mon Oct 17 15:15:23 2005] [notice] mod_security: chroot successful, path=/chroot/usr/local/apache2/
[Mon Oct 17 15:15:23 2005] [error] (2)No such file or directory: could not create /usr/local/apache2/logs/httpd.pid
[Mon Oct 17 15:15:23 2005] [error] httpd: could not log pid to file /usr/local/apache2/logs/httpd.pid
the httpd.pid file is there but it can't see it
root@ubuntu:/usr/local/apache2/bin # stat /chroot/usr/local/apache2/logs/httpd.pid
File: `/chroot/usr/local/apache2/logs/httpd.pid'
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 301h/769d Inode: 686793 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1002/ httpd) Gid: ( 1002/ httpd)
Access: 2005-10-17 15:11:47.212720704 +0900
Modify: 2005-10-17 15:11:47.212720704 +0900
Anyone have any ideas ??
I'm getting this error when I try to run mod_security in chroot environment.
The first bit is from the error_log file
[Mon Oct 17 15:15:23 2005] [notice] mod_security: chroot checkpoint #1 (pid=11846 ppid=11844)
[Mon Oct 17 15:15:23 2005] [notice] mod_security: chroot checkpoint #2 (pid=11847 ppid=11846)
[Mon Oct 17 15:15:23 2005] [notice] mod_security: chroot successful, path=/chroot/usr/local/apache2/
[Mon Oct 17 15:15:23 2005] [error] (2)No such file or directory: could not create /usr/local/apache2/logs/httpd.pid
[Mon Oct 17 15:15:23 2005] [error] httpd: could not log pid to file /usr/local/apache2/logs/httpd.pid
the httpd.pid file is there but it can't see it
root@ubuntu:/usr/local/apache2/bin # stat /chroot/usr/local/apache2/logs/httpd.pid
File: `/chroot/usr/local/apache2/logs/httpd.pid'
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 301h/769d Inode: 686793 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1002/ httpd) Gid: ( 1002/ httpd)
Access: 2005-10-17 15:11:47.212720704 +0900
Modify: 2005-10-17 15:11:47.212720704 +0900
Anyone have any ideas ??