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

Dpk*_*986 6 linux apache ubuntu php-7

apache2 configtest失败了.配置测试的输出是:

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
Run Code Online (Sandbox Code Playgroud)

Kar*_*hik 41

如果您已安装php5.6和php7可能会出现此问题.跑:

sudo a2dismod php7.0
sudo service apache2 restart
Run Code Online (Sandbox Code Playgroud)

希望有所帮助!

  • 好的,但它没有解释如何解决问题,每次更新包装时都需要做一些治疗. (3认同)