Author |
|
jfha73
Joined: 18 Aug 2011 Posts: 62 Location: New York
|
Posted: Sun 22 Nov '15 22:50 Post subject: Apache service there but not there? |
|
|
Hey guys,
I'm trying to start the Apache service and I get this:
Code: | system cannot find the file specified. : AH00436: No installed service named "Apache2.4". |
But if i try to install it it says this:
Code: | Installing the 'Apache2.4' service
(OS 1073)The specified service already exists. : AH00370: Failed to create the
'Apache2.4' service |
Any ideas how I can get it to work?
Thanks. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 23 Nov '15 12:42 Post subject: |
|
|
What you see about the Apache service with services.msc ? |
|
Back to top |
|
jfha73
Joined: 18 Aug 2011 Posts: 62 Location: New York
|
Posted: Mon 23 Nov '15 16:17 Post subject: |
|
|
I don't see it there, I don't see it in the registry either. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 23 Nov '15 16:24 Post subject: |
|
|
Try to delete:
>sc delete "Apache2.4"
what happens when you do
>httpd.exe -k install
and
>httpd.exe -k uninstall |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Mon 23 Nov '15 17:45 Post subject: |
|
|
Sometimes a service is 'marked for deletion', which can only be solved with a reboot. It does not look this is the case here, but rebooting sometimes helps with stubborn services. |
|
Back to top |
|
jfha73
Joined: 18 Aug 2011 Posts: 62 Location: New York
|
Posted: Tue 24 Nov '15 17:25 Post subject: |
|
|
I did and when I do
Code: | sc delete Apache2.4 |
I get the same I get when I do
"The service doesn't exist"
And when I do
It says "There is already a service called Apache2.4" |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Tue 24 Nov '15 19:14 Post subject: |
|
|
Hmm. Really stubborn. Try naming the service:
httpd -n Apache24 -k install |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 26 Nov '15 18:47 Post subject: |
|
|
To find the correct name for the installed service dump all service info into a text file
Code: |
sc query type= service state= all > allserviceslist.txt
|
or
Code: |
sc query type= service state= all | findstr /R Apache
|
|
|
Back to top |
|
PipoDeClown
Joined: 20 Dec 2005 Posts: 77
|
Posted: Thu 26 Nov '15 18:57 Post subject: |
|
|
Maybe some left over processes?
taskkill /f /t /im httpd.exe
Windows will remove the service once the defined process is stopped. |
|
Back to top |
|