Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.
This object is in archive! 

Log rotation and apache restarting failure (Script Automation)

Fr3DBr shared this idea 11 years ago
Open Discussion

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 !

Replies (2)

photo
1

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?

photo
1

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!)

Leave a Comment
 
Attach a file