1
我需要我的項目的Apache和MySQL服務,但我無法啓動Apache服務。無法啓動Xampp Apache服務
這裏是日誌:
5:45:22 PM [main] Initializing Control Panel
5:45:22 PM [main] Windows Version: Windows 8 64-bit
5:45:22 PM [main] XAMPP Version: 5.6.12
5:45:22 PM [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
5:45:22 PM [main] You are not running with administrator rights! This will work for
5:45:22 PM [main] most application stuff but whenever you do something with services
5:45:22 PM [main] there will be a security dialogue or things will break! So think
5:45:22 PM [main] about running this application with administrator rights!
5:45:22 PM [main] XAMPP Installation Directory: "c:\xampp\"
5:45:22 PM [main] Checking for prerequisites
5:45:23 PM [main] All prerequisites found
5:45:23 PM [main] Initializing Modules
5:45:23 PM [main] Enabling autostart for module "Apache"
5:45:23 PM [main] Starting Check-Timer
5:45:23 PM [main] Control Panel Ready
5:45:23 PM [Apache] Autostart active: starting...
5:45:23 PM [Apache] Attempting to start Apache service...
5:45:25 PM [Apache] Status change detected: running
5:45:27 PM [Apache] Status change detected: stopped
5:45:27 PM [Apache] Error: Apache shutdown unexpectedly.
5:45:27 PM [Apache] This may be due to a blocked port, missing dependencies,
5:45:27 PM [Apache] improper privileges, a crash, or a shutdown by another method.
5:45:27 PM [Apache] Press the Logs button to view error logs and check
5:45:27 PM [Apache] the Windows Event Viewer for more clues
5:45:27 PM [Apache] If you need more help, copy and post this
5:45:27 PM [Apache] entire log window on the forums
首先,當我安裝了XAMPP我是不是能夠運行Apache服務。然後,我在Skype中取消選中「使用端口80和443」並退出Skype,並將confg文件中的端口從80改爲8080和443改爲4433.完成此操作後,Apache服務器運行良好。但是在重新啓動我的筆記本電腦後,Xampp顯示Apache服務已啓動,但實際上並未啓動。然後我升級到Windows 10,現在發生了這種情況。
PS這是我的第一個問題
你幾乎自己回答了這個問題。如果在這之前它運行順利,那麼這是一個很大的機會,這是一個端口問題。但是,那麼你在那個領域檢查了什麼:80端口上是否有其他服務?你有兩個Xampps在運行嗎?問題何時開始?在Windows 10升級之前或之後? – achedeuzot
你能夠重新安裝XAMPP,或者你已經在MySQL中創建了一些數據庫嗎? – Nerdwood
讓我再次嘗試重新安裝Xampp。我爲Apache使用端口8080。至今我還沒有創建任何數據庫。 –