Apache is currently running. Some solutions offered elsewhere on the Internet suggest typing apache -k install and then retrying apache -k restart. But if I try that, I get another error,

Only one usage of each socket is permitted.

apache -k stop gives the following error (the same as I originally got from apache -k restart),

No installed service named "Apache2"

link|improve this question
feedback

2 Answers

I found another way. Using the Windows GUI, I selected Start->Programs->Administrative Tools->Services. I then searched for Apache in the running services. I did not find it. I found one called sugarApache however. I was able to restart the sugarApache using the 'Services' GUI.

link|improve this answer
feedback

There is a small application Apache installs, usually displayed in the system tray from where you can restart Apache.

You can restart a service with many utilities, like sc.exe, but just using the shell, use

net stop Apache2.2-Zend && net start Apache2.2-Zend

In my case, the name of the service is Apache2.2-Zend. You can check the name in services.msc.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown