logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache service there but not there?
Author
jfha73



Joined: 18 Aug 2011
Posts: 62
Location: New York

PostPosted: Sun 22 Nov '15 22:50    Post subject: Apache service there but not there? Reply with quote

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

PostPosted: Mon 23 Nov '15 12:42    Post subject: Reply with quote

What you see about the Apache service with services.msc ?
Back to top
jfha73



Joined: 18 Aug 2011
Posts: 62
Location: New York

PostPosted: Mon 23 Nov '15 16:17    Post subject: Reply with quote

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

PostPosted: Mon 23 Nov '15 16:24    Post subject: Reply with quote

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

PostPosted: Mon 23 Nov '15 17:45    Post subject: Reply with quote

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

PostPosted: Tue 24 Nov '15 17:25    Post subject: Reply with quote

I did and when I do

Code:
sc delete Apache2.4


I get the same I get when I do

Code:
httpd -k uninstall


"The service doesn't exist"

And when I do

Code:
httpd -k install


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

PostPosted: Tue 24 Nov '15 19:14    Post subject: Reply with quote

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

PostPosted: Thu 26 Nov '15 18:47    Post subject: Reply with quote

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

PostPosted: Thu 26 Nov '15 18:57    Post subject: Reply with quote

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


Reply to topic   Topic: Apache service there but not there? View previous topic :: View next topic
Post new topic   Forum Index -> Apache