Apache and Nginx do not start on boot

Refers to:

  • Plesk 11.5 for Linux

Created:

2016-11-16 12:58:10 UTC

Modified:

2016-12-21 19:39:31 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Apache and Nginx do not start on boot

Symptoms

  1. Apache and Nginx do not start on boot.
  2. Version of Apache installed is 2.2
  3. The following directory is missing after server reboot: /var/run/apache2 . Even when created manually, it is still removed after the server reboot.
  4. mod_ssl is enabled on a server

Cause

Bug in Apache 2.2 described here:

https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/603211

Workaround

There are 2 workarounds available:

  1. Disable mod_ssl and restart apache:

    # a2dismod ssl
    # service apache2 restart
  2. Add the following entry to /etc/init.d/apache2 file:

    [ -d /var/run/apache2 ] || mkdir /var/run/apache2
Have more questions? Submit a request
Please sign in to leave a comment.