无法加载 libphp5.so 未定义符号:unixd_config apache 服务未启动

无法加载 libphp5.so 未定义符号:unixd_config apache 服务未启动

当我尝试重新启动 apache 服务时出现以下错误:

root@localhost:/# /etc/init.d/apache2 restart
[FAIL] Restarting web server: apache2 failed!
[warn] The apache2 configtest failed. ... (warning).
Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error     on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load       /usr/lib/apache2/modules/libphp5.so into server:    /usr/lib/apache2/modules/libphp5.so: undefined symbol: unixd_config
Action 'configtest' failed.
The Apache error log may have more information.

root@localhost:/# ls -l /etc/apache2/mods-enabled/php5.load
lrwxrwxrwx 1 root root 27 Nov 17 10:31 /etc/apache2/mods-enabled/php5.load -   > ../mods-available/php5.load

root@localhost:~# apache2ctl -M
php5_module (shared) --MISSNG

root@localhost:/# apache2 -v
Server version: Apache/2.4.10 
Server built:   Sep 15 2016 20:44:43

root@localhost:/# php5 -v
PHP 5.6.29-1~dotdeb+7.1 (cli) (built: Dec  9 2016 16:30:46)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

采取了以下行动:

root@localhost:/# apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 290 not upgraded.

我已经关注Apache2使用php5模块时启动错误但不适用于我的情况。

有谁知道,如何排除并解决此错误?

相关内容