Log rotation and apache restarting failure (Script Automation)
There is an issue where the logging of apache suddenly stops.
After researching, I found out that the log rotation stop due to a problem that happen in httpd.conf, generally when a website is terminated, causing an inconsitency.
This inconsistency can be fixed automatically by calling the script :
/scripts/rebuildhttpconf
So I propose a solution, that might fix the 'graceful restart' apache does from time to time, and preventing problems like this.
Go to : /etc/rc.d/init.d
Change :
start|stop|restart|graceful|graceful-stop)
$HTTPD -k $ARGV -DSSL
ERROR=$?
;;
To :
start|stop|restart|graceful|graceful-stop)
/scripts/rebuildhttpdconf
$HTTPD -k $ARGV -DSSL
ERROR=$?
;;
This will fix the problem and will solve trouble with many of your customers !
This sounds more like a bug report than a feature request. What was the inconsistency you encountered? What was the root cause of the inconsistency?
This sounds more like a bug report than a feature request. What was the inconsistency you encountered? What was the root cause of the inconsistency?
Hello,
The root cause of this problem, is generally when a site is 'terminated', it seems the apache config is not rebuilt, and once a graceful restart happens, for example 'log rotation', the apache stop working OR just stop logging ! (I also have this same problem!)
Hello,
The root cause of this problem, is generally when a site is 'terminated', it seems the apache config is not rebuilt, and once a graceful restart happens, for example 'log rotation', the apache stop working OR just stop logging ! (I also have this same problem!)
Replies have been locked on this page!