Php 如何修复apache服务器
由于崩溃重新安装mysql服务器后。我不能让apache2在我Php 如何修复apache服务器,php,mysql,apache,ubuntu,Php,Mysql,Apache,Ubuntu,由于崩溃重新安装mysql服务器后。我不能让apache2在我 sudo /etc/init.d/apache2 restart 我得到这个错误 Restarting web server apache2 [fail] * The apache2 configtest failed. 配置测试的输出为: apache2: Syntax error on line 142 of /etc/apache2/ap
sudo /etc/init.d/apache2 restart
我得到这个错误
Restarting web server apache2 [fail]
* The apache2 configtest failed.
配置测试的输出为:
apache2: Syntax error on line 142 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: cannot open shared object file:
No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
如何解决此问题?试试看
sudo apt-get install libapache2-mod-php5
然后重新启动apache2。您的
/usr/lib/apache2/modules/libphp5是否存在?