Apache and localhost problems

Discussion in 'Apache' started by uk1simon, Feb 18, 2010.

  1. #1
    Hiy,

    I've got some problems with Apache. I wanna learn php and try to set it up as a localhost. I use windows xp. I installed Apache (apache_2.2.14-win32-x86-no_ssl.msi) 3 days ago and since then every day I get back home and spend a couple of hours on it to get it working. I get really frustrated 'cos I wanted to learn php and now I started reading apache documentation to sort the thing out.

    Well, error log file says:
    [Thu Feb 18 19:14:20 2010] [notice] Parent: Received restart signal -- Restarting the server.
    [Thu Feb 18 19:14:20 2010] [notice] Child 1804: Exit event signaled. Child process is ending.
    [Thu Feb 18 19:14:21 2010] [notice] Apache/2.2.14 (Win32) configured -- resuming normal operations
    [Thu Feb 18 19:14:21 2010] [notice] Server built: Sep 28 2009 22:41:08
    [Thu Feb 18 19:14:21 2010] [notice] Parent: Created child process 816
    [Thu Feb 18 19:14:21 2010] [notice] Child 816: Child process is running
    [Thu Feb 18 19:14:21 2010] [notice] Child 1804: Released the start mutex
    [Thu Feb 18 19:14:21 2010] [notice] Child 816: Acquired the start mutex.
    [Thu Feb 18 19:14:21 2010] [notice] Child 816: Starting 64 worker threads.
    [Thu Feb 18 19:14:23 2010] [notice] Child 1804: All worker threads have exited.
    [Thu Feb 18 19:14:23 2010] [notice] Child 1804: Child process is exiting
    [Thu Feb 18 19:14:23 2010] [notice] Child 816: Starting thread to listen on port 80.

    So, this seems to be allright.

    However when I first time started Apache error log said:

    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.100 for ServerName

    then I changed this bit in http.conf :
    #ServerName localhost:80
    to
    ServerName localhost:80

    Then, I open up Firefox or IE and type in: http://localhost and nothing
    status bar says: waiting for localhost
    I type in http://127.0.0.1 and the same result.

    So I went one step futher. I switch off Nod32 and Agnitum Outpost Firewall and the same result.
    However before turning off Agnitum Outpost I couldn't ping localhost. When I switch it off I can ping it.
    So I switch off both of them for peace of mind.

    Then I found on the net some solutions with IIS. So I went to control panel/administrative tools and stopped World Wide Web Publishing.

    typed in http://localhost:80 or http://127.0.0.1 and nothing.

    So I learned that it's good to know what the netstat command does.
    I typed netstat -ona and:

    Active Connections

    Proto Local Address Foreign Address State PID
    TCP 0.0.0.0:25 0.0.0.0:0 LISTENING 1392
    TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1988
    TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 1152
    TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
    TCP 0.0.0.0:1026 0.0.0.0:0 LISTENING 1392
    TCP 0.0.0.0:1028 0.0.0.0:0 LISTENING 2476
    TCP 0.0.0.0:1801 0.0.0.0:0 LISTENING 2476
    TCP 0.0.0.0:2103 0.0.0.0:0 LISTENING 2476
    TCP 0.0.0.0:2105 0.0.0.0:0 LISTENING 2476
    TCP 0.0.0.0:2107 0.0.0.0:0 LISTENING 2476
    TCP 127.0.0.1:80 127.0.0.1:2425 CLOSE_WAIT 816
    TCP 127.0.0.1:80 127.0.0.1:3087 CLOSE_WAIT 1804
    TCP 127.0.0.1:80 127.0.0.1:3088 ESTABLISHED 1988
    TCP 127.0.0.1:80 127.0.0.1:4013 CLOSE_WAIT 1988
    TCP 127.0.0.1:80 127.0.0.1:4019 CLOSE_WAIT 1988
    TCP 127.0.0.1:80 127.0.0.1:4028 CLOSE_WAIT 1988
    TCP 127.0.0.1:1029 0.0.0.0:0 LISTENING 1136
    TCP 127.0.0.1:3082 127.0.0.1:3083 ESTABLISHED 3400
    TCP 127.0.0.1:3083 127.0.0.1:3082 ESTABLISHED 3400
    TCP 127.0.0.1:3084 127.0.0.1:3085 ESTABLISHED 3400
    TCP 127.0.0.1:3085 127.0.0.1:3084 ESTABLISHED 3400
    TCP 127.0.0.1:3087 127.0.0.1:80 FIN_WAIT_2 3400
    TCP 127.0.0.1:3088 127.0.0.1:80 ESTABLISHED 3400
    TCP 127.0.0.1:5152 0.0.0.0:0 LISTENING 1644
    TCP 127.0.0.1:5152 127.0.0.1:3086 CLOSE_WAIT 1644
    TCP 127.0.0.1:5354 0.0.0.0:0 LISTENING 700
    UDP 0.0.0.0:445 *:* 4
    UDP 0.0.0.0:500 *:* 940
    UDP 0.0.0.0:1025 *:* 700
    UDP 0.0.0.0:1027 *:* 2476
    UDP 0.0.0.0:1035 *:* 1332
    UDP 0.0.0.0:1036 *:* 1332
    UDP 0.0.0.0:1066 *:* 1332
    UDP 0.0.0.0:2280 *:* 1332
    UDP 0.0.0.0:3386 *:* 1332
    UDP 0.0.0.0:3387 *:* 1332
    UDP 0.0.0.0:3456 *:* 1392
    UDP 0.0.0.0:3527 *:* 2476
    UDP 0.0.0.0:3776 *:* 2636
    UDP 0.0.0.0:3800 *:* 1332
    UDP 0.0.0.0:4500 *:* 940
    UDP 127.0.0.1:123 *:* 1204
    UDP 127.0.0.1:1900 *:* 2064
    UDP 127.0.0.1:4908 *:* 1204
    UDP 127.0.0.1:5353 *:* 700

    and I stop right now 'cos I've no idea what to do next.

    Is this normal that tcp 127.0.0.1 and tcp 0.0.0.0 use port 80.

    PID 1988 and 816 is httpd.exe but PID 1804 is not listed in my windows task manager.

    the whole thing is driving me nuts. Please help.



    Regards,
    Simon
     
    Last edited: Feb 18, 2010
    uk1simon, Feb 18, 2010 IP