2014-07-18 77 views
0

我已經在Windows 7上成功安裝了XAMPP(xampp-win32-1.8.2-0-VC9-installer.exe)。但不幸的是,從XAMPP控制面板運行的Apache中發現以下錯誤:Apache服務器未從XAMPP控制面板運行。給錯誤

PM 05:36:44 [Apache] Apache Service detected with wrong path 
PM 05:36:44 [Apache] Change XAMPP Apache and Control Panel settings or 
PM 05:36:44 [Apache] Uninstall/disable the other service manually first 
PM 05:36:44 [Apache] Found Path: "C:\Apache24\bin\httpd.exe" -k runservice 
PM 05:36:44 [Apache] Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice 
+0

你以前安裝過另一個Apache服務器嗎?似乎這樣... – Sirko

+0

是的,我已經安裝了以前的版本一次。 –

回答

0

有同樣的問題,如上所述,提出確保沒有使用端口80,但仍不能工作,得到的信息是Apache和MySQL被錯誤的路徑檢測到。

我之前安裝過XAMPP一次,卸載並重新安裝。我甚至手動卸載,但仍然有問題。

的修復。確保你先備份你的系統!

Start Services via Control Panel>Admin Tools 

Look for Apache and mySQL services. Look at the patch indicated in the description (right click on service then click on properties). Chances are that you have Apache listed twice, one from your correct install and one from a previous install. Even if you only see one, look at the path, chances are its from a previous install and causing your install not to work. In either case, you need to delete those incorrect services. 

a. Got to command prompt (run as administrator): Start > all programs > Accessories > right click on Command Prompt > Select 'run as administrator' 

b. on command prompt type sc delete service (service = the service you're wanting to delete) such as apache2.1. It should be exactly as it appears in your services. If the service has spaces such as apache 2.1 then enter it in quotes, i.e. sc delete "apache 2.1" 

c. press enter. Now refresh or close/open your services window and you'll see its gone. 

對於XAMPP發現運行路徑不正確的所有服務,請執行此操作。

一旦你做到這一點,去頭,並重新啓動XAMPP控制面板(如管理員),這就是。沒有衝突

+0

它工作.. !!!謝謝...!! –

相關問題