Apache server fails to start: "Segmentation fault"

Created:

2016-11-16 13:15:47 UTC

Modified:

2017-04-24 11:41:23 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Apache server fails to start: "Segmentation fault"

Applicable to:

  • Plesk for Linux

Symptoms

I cannot start Apache, the following error is shown:

# /etc/init.d/apache2 start
* Starting web server apache2
Apache server fails to start: "Segmentation fault"

In the /var/log/syslog file I see the following error:

kernel: [18992.333219] apache2[31384]: segfault at 7fff8e4e6760 ip 00007f201161da99 sp 00007fff8e4e6760 error 6 in libc-2.11.1.so[7f2011563000+17e000]

Cause

The issue is caused by OS packages conflicts - some of them are not from official repositories.

Resolution

It is needed to disable Apache modules one by one to find out which modules cause "Segmentation fault" error.

  1. Backup current configuration:

    # mv /etc/apache2/mods-enabled /etc/apache2/mods-enabled.backup
  2. Activate critical modules:

    # mkdir /etc/apache2/mods-enabled
    # cd /etc/apache2/mods-enabled.backup
    # cp actions* alias* auth* dir* env* mime* php5* ssl* ../mods-enabled
  3. Try to start Apache again:

    # /etc/init.d/apache2 start
  4. If it was successfully started enable other modules one by one to find which is broken. If Apache still fails to start, remove already activated modules one by one to find which is broken.

Have more questions? Submit a request
Please sign in to leave a comment.