XAMPP Apach無法啓動

XAMPP安裝成功後,啓動Apach服務總是失敗,提示如下Log:

11:37:38  [Apache] Error: Apache shutdown unexpectedly.
11:37:38  [Apache] This may be due to a blocked port, missing dependencies, 
11:37:38  [Apache] improper privileges, a crash, or a shutdown by another method.
11:37:38  [Apache] Press the Logs button to view error logs and check
11:37:38  [Apache] the Windows Event Viewer for more clues
11:37:38  [Apache] If you need more help, copy and post this
11:37:38  [Apache] entire log window on the forums


後來,看了一下,原來是80端口和443端口被skype程序佔用;

修改配置文件:

httpd.conf -> 80端口修改爲其他端口8082 或者其他的

httpd_ssl.conf -> 443端口修改爲其他端口4435或者其他


另外檢查一下serverName是否是有效的


XAMPP安裝之後,啓動Apache,可以修改跟目錄爲我們放置腳本的目錄:

修改方法:

httpd.conf -> 

修改下面的路徑到指定目錄即可:

#DocumentRoot "C:/Program Files (x86)/xampp/htdocs"
#<Directory "C:/Program Files (x86)/xampp/htdocs">


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章