Dpk1986
Dpk1986

Reputation: 73

The apache2 configtest failed. Segmentation fault (core dumped) Action 'configtest' failed

The apache2 configtest failed. Output of config test was:

Segmentation fault (core dumped)
Action 'configtest' failed.
The Apache error log may have more information.
------------------------------------------------
Error logs:-

 [mpm_prefork:notice] [pid 30111] AH00163: Apache/2.4.23 (Ubuntu) configured -- resuming normal operations
 [core:notice] [pid 30111] AH00094: Command line: '/usr/sbin/apache2'
 [mpm_prefork:notice] [pid 30111] AH00169: caught SIGTERM, shutting down

Upvotes: 7

Views: 13627

Answers (2)

Karthik
Karthik

Reputation: 1751

The problem may occur if you have installed php5.6 and php7. Run:

sudo a2dismod php7.0
sudo service apache2 restart

Upvotes: 52

Nakshtra Pradhan
Nakshtra Pradhan

Reputation: 111

This usually happens when you have multiple versions of php installed on your system(mostly php version 5 and php version 7+).

All you need to do is disable version of php7 and enable php version 5.

Follow these commands-

sudo a2dismod php7.0 (or php 7.2 -if php 7.2 version is installed )

sudo a2enmod php5.6

sudo update-alternatives --set php /usr/bin/php5.6

and then restart apache server by this command-

systemctl restart apache2

Upvotes: 1

Related Questions