linux - apache2 配置测试失败。段错误(核心已转储)操作 'configtest' 失败

标签 linux apache ubuntu php-7

apache2 配置测试失败。 配置测试的输出是:

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

最佳答案

如果你安装了php5.6和php7,可能会出现这个问题。运行:

sudo a2dismod php7.0
sudo service apache2 restart

希望对您有所帮助!

关于linux - apache2 配置测试失败。段错误(核心已转储)操作 'configtest' 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40241845/

相关文章:

linux - 在linux中使用sed命令更改变量值

ubuntu - 如何在 Ubuntu 上设置具有密码保护的 Elite HTTP Squid 代理?

java - 什么时候出现以下错误 "org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory"

linux - 具有Kaby Lake Intel HD 630的Ubuntu 14.04

ubuntu - dpkg : error processing archive/var/cache/apt/archives/golang-1. 6-go_1.6.2-0ubuntu5~16.04.2_amd64.deb(--解压):

php - Composer global 要求 Laravel/Installer 不能在 Ubuntu 上运行

linux - 网络中断后重新初始化/重新连接终端

linux - SVN 不断提示我输入密码并拒绝缓存我的凭据

php - 使用 echo 或 Die 进行调试和记录

linux - Git Smart HTTP推送权限失败