Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Service detected with wrong path

Tags:

php

apache

xampp

Hej, I have problem with:

Apache Service detected with wrong path

4:31:33 PM [Apache] Change XAMPP Apache and Control Panel settings or
4:31:33 PM [Apache] Uninstall/disable the other service manually first
4:31:33 PM [Apache] Found Path: "C:\Apache\bin\httpd.exe" -k runservice
4:31:33 PM [Apache] Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice

How to fix it? In advance, thank you.

like image 357
SLobodan Avatar asked May 30 '15 15:05

SLobodan


2 Answers

I just encountered the exact same problem a few days ago and was having a hard time finding the fix, but I finally able to fix it. Here's my fix:

  1. Win + R and type regedit then enter
  2. Open this directory HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache2.4
  3. Right-click on the "ImagePath" and choose "Modify"
  4. Change the Value Data field with your current installed path of apache in XAMPP
  5. In my case, the value is "D:\apps\xampp\apache\bin\httpd.exe" -k runservice
  6. For the question poster case, change the value to "C:\xampp\apache\bin\httpd.exe" -k runservice

I know it's an old post, but some people might still need this in the future. I hope it can help :)

like image 193
Rio Hilmy Avatar answered Oct 11 '22 18:10

Rio Hilmy


I experienced the same problem. The solution that worked for me is :

  1. Run the XAMPP in the administrator mode. Go to the XAMPP control panel.

  2. In the modules section, in the 'Service' column, we are provided with checkboxes.'

  3. For the services that you are facing problems with, click on the corresponding checkbox to uninstall the service.

  4. Also, click on the same checkbox again to re-install the service.

I hope it works! Xampp control panel screenshot

like image 22
Parul Sinha Avatar answered Oct 11 '22 19:10

Parul Sinha