1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

My Apache stopped to work suddenly...

Discussion in 'Apache' started by yankleber, Aug 13, 2005.

  1. #1
    Hi,

    I am experiencing a weird problem.

    I have Apache installed on my PC (Windows XP Pro) for development purposes (
    I code in PHP), for several months. A couple days ago, my Apache stopped to
    work, but when I checked the task manager it was there, running. However, if
    I open IE and type localhost or 127.0.0.1 I got a "page not found" error.

    I reinstalled the Apache and everything came back to normal working again...
    until I rebooted my computer! Then Apache stopped do work again...

    Any clues?
     
    yankleber, Aug 13, 2005 IP
  2. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What does the Apache error log say?
     
    tflight, Aug 13, 2005 IP
  3. UndiesHosting

    UndiesHosting Active Member

    Messages:
    219
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    78
    #3
    maybe look under services to make sure that its set to automatic
     
    UndiesHosting, Aug 13, 2005 IP
  4. yankleber

    yankleber Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you are not understanding... it's running but it cannot be found, when I try localhost or 127.0.0.1 or IE !!!
     
    yankleber, Aug 13, 2005 IP
  5. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You could be running into IE not being able to connect to Apache or Apache not being able to serve the page. First, make sure Apache is listening on the port 80. Run this command

    netstat -an | findstr 80

    and make sure there's at least one line that has :80 in the second column of the output. This is the IP address Apache's listening on. If it's something like 192.168.1.5:80 and not 0.0.0.0:80, then your request to localhost won't work.

    If Apache is listening on the port 80, then something's wrong with its configuration. Just as tflight said, the first place to look in is the error log.

    J.D.
     
    J.D., Aug 14, 2005 IP
  6. UndiesHosting

    UndiesHosting Active Member

    Messages:
    219
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    78
    #6
    I am understanding quite clearly. It is very possible for a program to be "running" but not doing what you expect it to be doing. In the windows world, the service could be stopped for some reason, but the process remains running. This would result in the symptoms you described (showing in the taskbar, but not coming up in the browser).

    you can also try this from the command prompt:

    telnet localhost 80

    If things are running properly you should get an http response.

    Also trying what JD recommended with netstat will help debug the problem.
     
    UndiesHosting, Aug 14, 2005 IP
  7. ajayr

    ajayr Active Member

    Messages:
    322
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #7
    Perhaps you could also check whether your firewall is blocking apache?
     
    ajayr, Aug 20, 2005 IP