Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

system/3049: Apache web server (httpd) dies after random period

From: Charlie Root <root(at)shopip.com>
Date: Tue Dec 24 2002 - 20:29:14 EST


>Number: 3049
>Category: system
>Synopsis: web server dies after random period
>Confidential: no
>Severity: serious
>Priority: high
ShopIP
>Environment:

	System      : OpenBSD 3.2
	Architecture: OpenBSD.i386
	Machine     : i386

>Description:
If /etc/newsyslog.conf is set to rotate apache logs, httpd will die when cron tries to restart it. New to OpenBSD 3.2, the "unused" files conf/srm.conf and conf/access.conf were removed. httpd will not restart via a signal if these are not present.
>How-To-Repeat:
1. Enable httpd in rc.conf 2. Uncomment apache log rotation lines in /etc/newsyslog.conf 3. Reboot, use web until it dies... :) Or: Run httpd, then kill -s USR1 , note no longer running. View error message in /var/www/logs/error_log.
>Fix:
touch /var/www/conf/srm.conf /var/www/conf/access.conf Note that the expected fix would be to uncomment ResourceConfig and AccessConfig in httpd.conf and send these to /dev/null (see httpd.conf-dist), however in a chroot environment this cannot be done. The real fix is to patch the C source... ResourceConfig /dev/null #conf/srm.conf AccessConfig /dev/null #conf/access.conf

>Release-Note:
Received on Mon Dec 30 08:41:21 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:29:43 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library