Problem med apache efter chroot

Trädvy Permalänk
Medlem
Registrerad
Jun 2007

Problem med apache efter chroot

Har chrootat apache efter guiden på gentoo-wiki: http://gentoo-wiki.com/Apache_chroot:_the_mod_security_way
Det verkar fungera bra förutom att det inte blir någon .pid fil.

Efter jag stoppar apache får jag:
httpd (no pid file) not running

I error_log:

[Tue Feb 19 22:41:12 2008] [notice] Digest: done [Tue Feb 19 22:41:12 2008] [error] SecServerSignature: original signature too short. Please set ServerTokens to Full. [Tue Feb 19 22:41:12 2008] [notice] ModSecurity: chroot checkpoint #2 (pid=5510 ppid=1) [Tue Feb 19 22:41:12 2008] [notice] ModSecurity: chroot successful, path=/chroot/wwwjail [Tue Feb 19 22:41:12 2008] [error] (2)No such file or directory: could not create /chroot/wwwjail/var/run/apache2.pid [Tue Feb 19 22:41:12 2008] [error] apache2: could not log pid to file /chroot/wwwjail/var/run/apache2.pid [Tue Feb 19 22:49:52 2008] [error] SecServerSignature: original signature too short. Please set ServerTokens to Full. [Tue Feb 19 22:49:52 2008] [notice] ModSecurity: chroot checkpoint #1 (pid=5598 ppid=5595) [Tue Feb 19 22:49:52 2008] [notice] ModSecurity for Apache 2.1.2 configured - Apache [Tue Feb 19 22:49:52 2008] [notice] Digest: generating secret for digest authentication ... [Tue Feb 19 22:49:52 2008] [notice] Digest: done [Tue Feb 19 22:49:52 2008] [error] SecServerSignature: original signature too short. Please set ServerTokens to Full. [Tue Feb 19 22:49:52 2008] [notice] ModSecurity: chroot checkpoint #2 (pid=5599 ppid=1) [Tue Feb 19 22:49:52 2008] [notice] ModSecurity: chroot successful, path=/chroot/wwwjail [Tue Feb 19 22:49:52 2008] [notice] Apache configured -- resuming normal operations [Tue Feb 19 22:51:45 2008] [error] SecServerSignature: original signature too short. Please set ServerTokens to Full. [Tue Feb 19 22:51:45 2008] [notice] ModSecurity: chroot checkpoint #1 (pid=5762 ppid=5759) [Tue Feb 19 22:51:45 2008] [notice] ModSecurity for Apache 2.1.2 configured - Apache [Tue Feb 19 22:51:45 2008] [notice] Digest: generating secret for digest authentication ...