Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 575
Dpk1986 Avatar asked Oct 25 '16 13:10

Dpk1986


2 Answers

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

sudo a2dismod php7.0
sudo service apache2 restart

Hope that helps!

like image 63
Karthik Avatar answered Sep 23 '22 15:09

Karthik


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

like image 32
Nakshtra Pradhan Avatar answered Sep 21 '22 15:09

Nakshtra Pradhan