Current time: 12-23-2024, 09:07 PM Hello There, Guest! (LoginRegister)


Thread Closed 
Ubuntu 10.04.1 - After reboot apache won't start
Author Message
hubsif Offline
Newbie
*

Posts: 5
Joined: Nov 2009
Reputation: 1
Post: #7
RE: Ubuntu 10.04.1 - After reboot apache won't start
I'm running ispcp on gentoo and had the same problems: apache file got zipped every saturday, new /etc/init.d/apache2 file was empty.

I found the cause: It's due to a misconfigured logrotate / logrotate bug.

Despite others I had the files "apache2" and "ispcp" in /etc/logrotate.d/. Both of them set the rotation of "/var/log/apache2/*.log" which caused logrotate to do weird things: It misinterpreted the config and thought the script-line "/etc/init.d/apache2 reload [...]" is the next entry and therefore rotated /etc/init.d/apache2.
If you delete one of these files everything works fine again.

In short: remove "/etc/logrotate.d/apache2" (or similar)!

hubsif.
01-15-2011 10:44 PM
Find all posts by this user
Thread Closed 


Messages In This Thread
RE: Ubuntu 10.04.1 - After reboot apache won't start - hubsif - 01-15-2011 10:44 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)