2017-04-07 66 views
0

我最近首次安裝了xamp服務器,並希望在本地服務器上運行php網站。當我啓動Apache模塊XAMP服務器那麼就說明下面的錯誤但是MySQL的啓動和運行良好:無法在xamp服務器中啓動Apache模塊

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

我這樣做對我的軟件測試任務。我必須在本地服務器上測試一個網站,爲此我安裝了xamp服務器。誰能幫忙?

+0

你按下日誌按鈕?它說什麼日誌文件? – dparoli

回答

0

可能有很多可能的答案。最常見的是運行在端口80上的另一個程序。我遇到了同樣的問題,然後發現我的Vagrant盒運行在端口80上。

如果您的計算機上安裝了Skype,請將您的apache端口更改爲別的東西。

要做到這一點,去XAMPP /阿帕奇/ conf目錄/ httpd.conf文件,並在httpd.conf更改下面一行:

ServerName localhost:80 

ServerName localhost:81 

此外,如果它不工作,更改以下行以及:

 Listen 80 
    to 
    Listen 81 
+0

我已經打開你所說的文件。你能否告訴你在哪裏提到你所提到的路線?正如我已經檢查,並沒有文件說明serverName localhost:東西 –

+0

你在使用什麼操作系統? – Dipen

+0

使用Windows 8.1 –