“Apache Service detected with wrong path” in XAMPP
I had some trouble with Apache in XAMPP.
Problem
When I start xampp-control.exe, the message “Apache Service detected with wrong path” is displayed in XAMPP Control Panel.
![](https://s-nako.work/wp/wp-content/uploads/2020/10/xampp_apache_service_detected01.png)
Environment
Windows10
XAMPP 7.4.10
Cause of the message
Apache Service has already registered and it doesn’t match the Apache of xampp.
Open Windows Administrative Tools > Services.
![](https://s-nako.work/wp/wp-content/uploads/2020/10/xampp_apache_service_detected02.png)
![](https://s-nako.work/wp/wp-content/uploads/2020/10/xampp_apache_service_detected03.png)
Open the properties window of Apache2.4 and see the “Path to executable”. It should be changed to the path to the xampp Apache.
![](https://s-nako.work/wp/wp-content/uploads/2020/10/xampp_apache_service_detected04.png)
![](https://s-nako.work/wp/wp-content/uploads/2020/10/xampp_apache_service_detected05.png)
*If you’d like to know about “Windows Service” more, check the article “What is Windows Service?“.
Solution
1. Change the register data
Press Windows key + R and Open “regedit”.
![](https://s-nako.work/wp/wp-content/uploads/2020/10/windows_service05.png)
Open Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and open Apache2.4
![](https://s-nako.work/wp/wp-content/uploads/2020/10/xampp_apache_service_detected06-1.png)
Right-click ImagePath and Modify the Data.
![](https://s-nako.work/wp/wp-content/uploads/2020/10/xampp_apache_service_detected07.png)
Change the value data and click OK button.
![](https://s-nako.work/wp/wp-content/uploads/2020/10/xampp_apache_service_detected08.png)
2. Restart XAMPP Control Panel
Restart XAMPP Control Panel. The error disappeared.
![](https://s-nako.work/wp/wp-content/uploads/2020/10/xampp_apache_service_detected09.png)