我在安裝xampp的時(shí)候,apache和MySQL總是無法啟動(dòng)跨新,報(bào)錯(cuò)信息:
22:36:55 [Apache] Error: Apache shutdown unexpectedly.
22:36:55 [Apache] This may be due to a blocked port, missing dependencies,
22:36:55 [Apache] improper privileges, a crash, or a shutdown by another method.
22:36:55 [Apache] Press the Logs button to view error logs and check
22:36:55 [Apache] the Windows Event Viewer for more clues
22:36:55 [Apache] If you need more help, copy and post this
22:36:55 [Apache] entire log window on the forums
網(wǎng)上的教程90%是修改httpd.conf文件中的端口贞谓,我也這么修改過了,但是還是無法啟動(dòng),我以為是我之前單獨(dú)安裝過apache和MySQL所導(dǎo)致的旺芽,我也把之前單獨(dú)安裝的apache和MySQL刪除并刪除注冊(cè)表并重啟,再繼續(xù)啟動(dòng)xampp辐啄,還是報(bào)錯(cuò)無法啟動(dòng)采章。
終于,我又一次卸載重新安裝壶辜,在我安裝xampp的過程中悯舟,有個(gè)提示:
提示我要安裝Microsoft Visual C++ 2008 Redistributable Package (x86),才能使用砸民,這可能是新版本的約定抵怎,所以在我尋找答案的時(shí)候都沒有發(fā)現(xiàn)這個(gè)問題,我才苦苦尋找那么久岭参,于是我在安裝完xampp的時(shí)候反惕,在官網(wǎng)下載了https://www.microsoft.com/en-us/download/details.aspx?id=29,安裝完這個(gè)之后雙擊xampp安裝目錄下的setup_xampp.bat文件演侯,最后運(yùn)行安裝目錄下的xampp-control.exe文件姿染,此時(shí)啟動(dòng)Apache就可以成功了。