Hello, I'm new at Apache. So don't be hard on me. I have installed Apache 2.2.8 on my WinXP computer. It was installed as a Console Application. It works but i can't stop it correctly. In documentation it's told that there are two ways: * by pressing Control-C in the console window where Apache is running in * by opening another console window and entering: httpd.exe -k shutdown First way works only when Apache has been started manually in the console window. Second way isn't working. It is displayed: C:\Apache\bin>httpd.exe -k sutdown [Sat May 03 17:05:21 2008] [error] (OS 2) No installed service named "Apache2.2". Can anyone suggest me what is the problem? Thanks in advance. (Sorry for my english. I not English-speaking)
The 2nd method works when you have installed apache service (using command "httpd.exe -k install" or "httpd.exe -k install -n ApacheServiceName"). If you have installed service, check the service name and execute shutdown command like this (assuming "Apache2" is service name): httpd.exe -k shutdown -n Apache2 Apache service name can be found in Control panel -> Admin Tools -> Services.
Thank you. I supposed that the second method works in any case. Most likely, I incorrectly understood the documentation.