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
The problem may occur if you have installed php5.6 and php7. Run:
sudo a2dismod php7.0
sudo service apache2 restart
Hope that helps!
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With