How to start Apache 2.2 in Windows 7

Discussion in 'Apache' started by ManUtdFans, Dec 22, 2009.

  1. #1
    I am using Windows 7 and just installed Apache 2.2.

    Just tried to open IE by http//:localhost:8080
    I have modified the conf file.

    It showed cannot connect to webpage.

    In addition, there is no start up menu item in Windows 7 and also no idea how to start and stop the Apache by looking at the Task Manager.
     
    ManUtdFans, Dec 22, 2009 IP
  2. szalinski

    szalinski Peon

    Messages:
    341
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i don't think it would be any different from use on WinXP...if you used the installer, then go to a command prompt and type 'net start apache2.2'. since you have edited the conf files, try also 'httpd -t' for a config check.
     
    szalinski, Dec 22, 2009 IP
  3. ManUtdFans

    ManUtdFans Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I tried:
    net start apache2.2
    and also
    net start apache 2.2

    got the error:
    The service name is invalid.

    Do I need to run in a specify folder in command prompt?
     
    ManUtdFans, Dec 22, 2009 IP
  4. szalinski

    szalinski Peon

    Messages:
    341
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    not for running the net command, but i dunno about win7 never used and don't plan to for a long time yet :rolleyes:

    anyway the error you received means the service wasn't installed, or you're not using apache 2.2...did you download the installer from httpd.apache.org or are you using an unzipped version? because i can't understand why the service didn't get installed...and did you have apache running successfully before you edited the conf file?
     
    szalinski, Dec 22, 2009 IP
  5. ManUtdFans

    ManUtdFans Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi, finally I used this:
    c:
    cd "\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe"

    Save these as bat file and run this bat file to start Apache.

    But the only way I can stop this is press Ctrl-C inside the DOS prompt.
     
    ManUtdFans, Dec 22, 2009 IP
  6. hostwebdata

    hostwebdata Peon

    Messages:
    264
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    try to run apachey in windows Administrator user mode and see what that does
     
    hostwebdata, Dec 23, 2009 IP
  7. szalinski

    szalinski Peon

    Messages:
    341
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    sorry i think it should be
    net start Apache2.2
    Code (markup):
     
    szalinski, May 12, 2010 IP