2014-11-17 50 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。