So, I’ve only been up for about three weeks and I’ve already got my first spam comment (which is why I moderate all comments ATM.) Also, it was kind of strange, I went to go here at work today and I wasn’t able to connect. So, I logged into my router. I thought that my iptables were screwy again, so I started trying to fix them by hand. Deleted a rule and BAM no more connectivity to my router (at all.) So I had to wait to get home to login locally, flush iptables, and reload my firewall. Then I decided to login to my server. Wouldn’t you know it, Apache was no longer running. Check the logs:
[Sun Sep 27 06:25:07 2009] [notice] Graceful restart requested, doing restart
apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory
Well of course you can’t, you were probably incorrectly told to reload rather than do a proper restart. So the etc/apache2/apache2.conf isn’t in the chroot. So, I changed the init.d/apache2 to have reload and force-reload do restart instead. Hopefully that’ll fix that so I won’t have to worry about my server magically failing on me again.