With a little side of applesauce...

Saturday, May 12, 2007

Debian - Apache 2.2 - failure to start

I thought I would write this one down, since it has bitten me more than once. It appears that apt removes the /var/log/apache directory when upgrading to apache2.2, so apache kept failing with a cryptic error:

Configuration Failed

This was really difficult to trace, as both:

/usr/sbin/apache2ctl configtest


/usr/sbin/apache2 -t


Syntax OK

The failure to start was actually caused by the RewriteLog be set to:

RewriteLog /var/log/apache/rewrite

which was passed down through the generations... I had to enable a single virtualHost, and then start to comment out lines until I found the right one :P

No comments: