Logo

Ubuntu Apache Bug

Posted under » Ubuntu » Apache on 13 October 2009

Ubuntu will mysteriously and randomly create extra directories for Apache here /etc/init.d/.

When this happens

# /etc/init.d/apache2 start

will not work. In other words, Apache will fail.

To solve this and to operate as if nothing has happened, you

  • delete the /etc/init.d/apache2 folder or file. This will still exist although file size is 0.
  • create a /etc/init.d/apache2 hard or soft link to /etc/init.d/apache2.x

for example

# cd /etc/init.d/
# rm apache2
# ln apache2.1 apache2