简体   繁体   English

apache2 configtest失败了。 分段错误(核心转储)操作'configtest'失败

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

The apache2 configtest failed. apache2 configtest失败了。 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. 如果您已安装php5.6和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+). 这通常发生在你的系统上安装了多个版本的php(主要是php版本5和php版本7+)。

All you need to do is disable version of php7 and enable php version 5. 您需要做的就是禁用php7的版本并启用php版本5。

Follow these commands- 遵循这些命令 -

sudo a2dismod php7.0 (or php 7.2 -if php 7.2 version is installed ) sudo a2dismod php7.0(或php 7.2 -if php 7.2版本已安装)

sudo a2enmod php5.6 sudo a2enmod php5.6

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

and then restart apache server by this command- 然后通过此命令重启apache服务器 -

systemctl restart apache2 systemctl重启apache2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM