Problem with Apache 2.2.8 in Windows XP

Discussion in 'Apache' started by onotole, May 5, 2008.

  1. #1
    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)
     
    onotole, May 5, 2008 IP
  2. Cybernaut

    Cybernaut Peon

    Messages:
    408
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    Cybernaut, May 8, 2008 IP
  3. onotole

    onotole Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you. I supposed that the second method works in any case. Most likely, I incorrectly understood the documentation.
     
    onotole, May 8, 2008 IP