2014-11-16 102 views
0

我剛在我的電腦上安裝了XAMPP,它似乎沒有啓動。我收到此錯誤:XAMPP不啓動

21:34:50 [Apache] Attempting to start Apache app... 
21:34:50 [Apache] Status change detected: running 
21:34:51 [Apache] Status change detected: stopped 
21:34:51 [Apache] Error: Apache shutdown unexpectedly. 
21:34:51 [Apache] This may be due to a blocked port, missing dependencies, 
21:34:51 [Apache] improper privileges, a crash, or a shutdown by another method. 
21:34:51 [Apache] Press the Logs button to view error logs and check 
21:34:51 [Apache] the Windows Event Viewer for more clues 
21:34:51 [Apache] If you need more help, copy and post this 
21:34:51 [Apache] entire log window on the forums 

回答

0

嘗試改變Apache的監聽端口,開放 「的httpd.conf」 文件(C:\ XAMPP的\ apache的\的conf \ httpd.conf文件),然後換行:

#Listen 12.34.56.78:80 Listen 80

#Listen 12.34.56.78:80 Listen 9000 or other number

保存並重新啓動Apache服務器。這個對我有用。

0

其他程序如Skype使用相同的端口。如果您通常使用Skype,並且您不想更改「httpd.conf」,請嘗試取消選中選項 - >高級配置 - >允許Skype使用這些端口的連接中的選項。

這是我的情況的解決方案。

-1

兩種方法:

1 - 嘗試改變默認的Apache監聽端口從80到81,開放 「的httpd.conf」 誰是(C:\ XAMPP的\ apache的\的conf \ httpd.conf文件)

#Listen 12.34.56.78:80 
Listen 81 

2,在Windows嘗試停止服務IIS-2,使用權限做開放終端輸入放入系統命令停止和啓動它

net stop WAS 
net start W3SVC 
+0

這真的不添加任何東西,考慮到已經建議改變港口。 – Andrius

+0

第二種方法不要修改任何端口 –