Apache Service detected with wrong path

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache Service detected with wrong path

Postby AMUK » 31. March 2021 14:40

Hello All

Hate to ask but i need some help, im just starting out. I've installed XAMPP however i did have Apache already installed. XAMPP doesn't like that which is fine so i deleted it my Apache and XAMPP. Starting a fresh or so i thought. Anyway i have re-downloaded XAMPP but it still gives me this error message.

Sure it's a simple fix.

Initializing Modules
14:31:48 [Apache] Apache Service detected with wrong path
14:31:48 [Apache] Change XAMPP Apache and Control Panel settings or
14:31:48 [Apache] Uninstall/disable the other service manually first
14:31:48 [Apache] Found Path: "C:\Apache24\bin\httpd.exe" -k runservice
14:31:48 [Apache] Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice
14:31:48 [main] Starting Check-Timer
14:31:48 [main] Control Panel Ready
14:31:52 [Apache] Attempting to start Apache service...

How do i go about changing the path to the correct one?
AMUK
 
Posts: 1
Joined: 31. March 2021 14:34
XAMPP version: V3.2.4
Operating System: Windows 10

Re: Apache Service detected with wrong path

Postby BROnstott » 07. May 2021 02:20

I have the same issue. Any help available?
BROnstott
 
Posts: 1
Joined: 07. May 2021 02:18
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Apache Service detected with wrong path

Postby Altrea » 07. May 2021 08:46

Hi,

AMUK wrote:14:31:48 [Apache] Found Path: "C:\Apache24\bin\httpd.exe" -k runservice
14:31:48 [Apache] Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice

XAMPP uses the same default service names for Apache as Apache would register itself. XAMPP cannot know why the service path is not correct, so the user has to solve this problem.

If the service is leftover from a already uninstalled installation, it can simply get removed. To do this you have to open a Windows command line with enhanced administration rights (rightclick the cmd.exe and choose "run as Administrator") and than type in the command
Code: Select all
sc delete Apache 2.4
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache Service detected with wrong path

Postby pmrii » 01. March 2023 16:22

If sc delete Apache 2.4 does not work you may have to edit the services folder. This was my case with Windows 11 Home ed.

The following url gives pretty clear instructions to do this. You will want to look for Apache 24. https://www.makeuseof.com/windows-11-delete-service/

After deleting the service, click the file icon (explorer) on the tool bar and go to your root directory (C: or whatever). Delete the xampp folder completely (trash can) and restart your computer.

Once your computer is back up and running, try installing xampp again.
pmrii
 
Posts: 1
Joined: 01. March 2023 15:31
XAMPP version: 3.3
Operating System: Windows 11 home


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 98 guests