2014-11-17 51 views
0

由于崩溃导致重新登录mysql服务器。我不能得到的Apache2再次运行的时候我如何修复Apache服务器

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. 

我怎样才能解决这个问题?

+2

是你的'/ usr/lib/apache2/modules/libphp5.so'存在吗? – vaso123

回答

0

尝试

sudo apt-get install libapache2-mod-php5 

然后,重新启动的Apache2。