localhost not working on XP - Apache

This is a discussion on localhost not working on XP - Apache ; I am trying to install Apache 2.0.49 on my XP Professional system - Version 2002 Service Pack 1. All windows updates have been installed. Through the installation wizard I set Network Domain to localdomain server name to localhost and left ...

+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

localhost not working on XP

  1. Default localhost not working on XP

    I am trying to install Apache 2.0.49 on my XP Professional system - Version
    2002 Service Pack 1. All windows updates have been installed.
    Through the installation wizard I set
    Network Domain to localdomain
    server name to localhost
    and left the for All users on Port 80'' button set.
    The installation appeared to install OK and it began as a service.

    When I go to the browser and input
    http://localhost
    http://localhost:80

    I get no response - the system just hangs ie sits there for minutes with no
    response.

    What have I missed - I have re-installed a number of times with different
    versions and have the same problem.

    Thanks
    Kim Evans


    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    " from the digest: users-digest-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org



  2. Default Re: localhost not working on XP

    At 03:26 PM 3/21/2004, you wrote:
    >I am trying to install Apache 2.0.49 on my XP Professional system - Version
    >2002 Service Pack 1. All windows updates have been installed.
    >Through the installation wizard I set
    >Network Domain to localdomain
    >server name to localhost
    >and left the for All users on Port 80'' button set.
    >The installation appeared to install OK and it began as a service.
    >
    >When I go to the browser and input
    > http://localhost
    > http://localhost:80
    >
    >I get no response - the system just hangs ie sits there for minutes with no
    >response.
    >
    >What have I missed - I have re-installed a number of times with different
    >versions and have the same problem.
    >
    >Thanks
    >Kim Evans


    Just a shot in the dark, but might you have the version of IIS that came
    with WinXP Pro installed already? If so, Apache and IIS may be fighting
    over which one runs as your webserver. I've got Apache 1.3.28 and 2.0.47
    installed on my system for testing and both work well, though I don't have
    IIS or .NET installed.

    -Tim



    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    " from the digest: users-digest-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org



  3. Default Re: localhost not working on XP

    IIS is installed but I have disabled it under services, Similarly, I have
    disabled QoS
    How would I check for .NET - I don't think it is installed.

    Kim

    ----- Original Message -----
    From: "Tim Thorburn" <immortal@nwconx.net>
    To: <users@httpd.apache.org>
    Sent: Sunday, March 21, 2004 3:38 PM
    Subject: Re: [users@httpd] localhost not working on XP


    > At 03:26 PM 3/21/2004, you wrote:
    > >I am trying to install Apache 2.0.49 on my XP Professional system -

    Version
    > >2002 Service Pack 1. All windows updates have been installed.
    > >Through the installation wizard I set
    > >Network Domain to localdomain
    > >server name to localhost
    > >and left the for All users on Port 80'' button set.
    > >The installation appeared to install OK and it began as a service.
    > >
    > >When I go to the browser and input
    > > http://localhost
    > > http://localhost:80
    > >
    > >I get no response - the system just hangs ie sits there for minutes with

    no
    > >response.
    > >
    > >What have I missed - I have re-installed a number of times with different
    > >versions and have the same problem.
    > >
    > >Thanks
    > >Kim Evans

    >
    > Just a shot in the dark, but might you have the version of IIS that came
    > with WinXP Pro installed already? If so, Apache and IIS may be fighting
    > over which one runs as your webserver. I've got Apache 1.3.28 and 2.0.47
    > installed on my system for testing and both work well, though I don't have
    > IIS or .NET installed.
    >
    > -Tim
    >
    >
    >
    > ---------------------------------------------------------------------
    > The official User-To-User support forum of the Apache HTTP Server Project.
    > See <URL:http://httpd.apache.org/userslist.html> for more info.
    > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    > " from the digest: users-digest-unsubscribe@httpd.apache.org
    > For additional commands, e-mail: users-help@httpd.apache.org
    >
    >



    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    " from the digest: users-digest-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org



  4. Default Re: localhost not working on XP

    On Sun, 2004-03-21 at 15:26, Kim Evans wrote:
    > I am trying to install Apache 2.0.49 on my XP Professional system - Version
    > 2002 Service Pack 1. All windows updates have been installed.
    > Through the installation wizard I set
    > Network Domain to localdomain
    > server name to localhost
    > and left the for All users on Port 80'' button set.
    > The installation appeared to install OK and it began as a service.
    >
    > When I go to the browser and input
    > http://localhost
    > http://localhost:80
    >
    > I get no response - the system just hangs ie sits there for minutes with no
    > response.
    >
    > What have I missed - I have re-installed a number of times with different
    > versions and have the same problem.
    >
    > Thanks
    > Kim Evans
    >
    >
    > ---------------------------------------------------------------------
    > The official User-To-User support forum of the Apache HTTP Server Project.
    > See <URL:http://httpd.apache.org/userslist.html> for more info.
    > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    > " from the digest: users-digest-unsubscribe@httpd.apache.org
    > For additional commands, e-mail: users-help@httpd.apache.org
    >


    Kim,

    Start here...

    In a console type 'net stop apache2'

    Does it say...
    The Apache2 service is not started.

    Or does it say
    The Apache2 service is stopping...
    The Apache2 Service was stopped successfully.


    Now go to the \apache\bin directory (where ever you installed it) and
    type...

    apache -k start

    If there are errors in your apache conf sometimes you will get clues
    from Apache when it starts from the command line.

    You should look in the logs directory for errors as well.

    I am guessing because I do not use the installer, but perhaps you
    created a servername like this localhost.localdomain and I doubt that
    this resolves to an Ip Address.

    Try editing your httpd.conf by hand (notepad), find the ServerName line
    and see what it says. Change it to localhost:80 and retry starting
    Apache like above. There is no configuration value called Network Domain
    in the httpd.conf so I suspect it is used to build the ServerName
    setting.

    With Apache stopped you should be able to use the netstat command to
    learn if there is an IIS holding the port.

    From the console type 'netstat -a -o'

    This will list the active ports and -o means show the PID's of the
    process that has the port. Compare PID with those in the taskmanager to
    learn who has port 80 or http.

    Let me know (on the list ) what you learn and I will see if I can help
    you along.

    Chris



    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    " from the digest: users-digest-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org



  5. Default Re: localhost not working on XP

    Thanks Chris,
    In a console when I typed 'net stop apache2' it says

    The Apache2 service is stopping...
    The Apache2 Service was stopped successfully.

    Entering apache -k start gave no errors

    These are the only entries in the error log
    [Sun Mar 21 16:35:14 2004] [notice] Parent: Created child process 3468
    [Sun Mar 21 16:35:14 2004] [notice] Child 3468: Child process is running
    [Sun Mar 21 16:35:14 2004] [notice] Child 3468: Acquired the start mutex.
    [Sun Mar 21 16:35:14 2004] [notice] Child 3468: Starting 250 worker threads.

    In the httpd.conf file are these entries
    Listen 80
    ServerName localhost:80

    typing 'netstat -a -o'
    did not show anything with PID 80

    Kim


    ----- Original Message -----
    From: "hunter" <theantigod@sympatico.ca>
    To: <users@httpd.apache.org>
    Sent: Sunday, March 21, 2004 4:05 PM
    Subject: Re: [users@httpd] localhost not working on XP


    > On Sun, 2004-03-21 at 15:26, Kim Evans wrote:
    > > I am trying to install Apache 2.0.49 on my XP Professional system -

    Version
    > > 2002 Service Pack 1. All windows updates have been installed.
    > > Through the installation wizard I set
    > > Network Domain to localdomain
    > > server name to localhost
    > > and left the for All users on Port 80'' button set.
    > > The installation appeared to install OK and it began as a service.
    > >
    > > When I go to the browser and input
    > > http://localhost
    > > http://localhost:80
    > >
    > > I get no response - the system just hangs ie sits there for minutes with

    no
    > > response.
    > >
    > > What have I missed - I have re-installed a number of times with

    different
    > > versions and have the same problem.
    > >
    > > Thanks
    > > Kim Evans
    > >
    > >
    > > ---------------------------------------------------------------------
    > > The official User-To-User support forum of the Apache HTTP Server

    Project.
    > > See <URL:http://httpd.apache.org/userslist.html> for more info.
    > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    > > " from the digest: users-digest-unsubscribe@httpd.apache.org
    > > For additional commands, e-mail: users-help@httpd.apache.org
    > >

    >
    > Kim,
    >
    > Start here...
    >
    > In a console type 'net stop apache2'
    >
    > Does it say...
    > The Apache2 service is not started.
    >
    > Or does it say
    > The Apache2 service is stopping...
    > The Apache2 Service was stopped successfully.
    >
    >
    > Now go to the \apache\bin directory (where ever you installed it) and
    > type...
    >
    > apache -k start
    >
    > If there are errors in your apache conf sometimes you will get clues
    > from Apache when it starts from the command line.
    >
    > You should look in the logs directory for errors as well.
    >
    > I am guessing because I do not use the installer, but perhaps you
    > created a servername like this localhost.localdomain and I doubt that
    > this resolves to an Ip Address.
    >
    > Try editing your httpd.conf by hand (notepad), find the ServerName line
    > and see what it says. Change it to localhost:80 and retry starting
    > Apache like above. There is no configuration value called Network Domain
    > in the httpd.conf so I suspect it is used to build the ServerName
    > setting.
    >
    > With Apache stopped you should be able to use the netstat command to
    > learn if there is an IIS holding the port.
    >
    > From the console type 'netstat -a -o'
    >
    > This will list the active ports and -o means show the PID's of the
    > process that has the port. Compare PID with those in the taskmanager to
    > learn who has port 80 or http.
    >
    > Let me know (on the list ) what you learn and I will see if I can help
    > you along.
    >
    > Chris
    >
    >
    >
    > ---------------------------------------------------------------------
    > The official User-To-User support forum of the Apache HTTP Server Project.
    > See <URL:http://httpd.apache.org/userslist.html> for more info.
    > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    > " from the digest: users-digest-unsubscribe@httpd.apache.org
    > For additional commands, e-mail: users-help@httpd.apache.org
    >
    >



    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    " from the digest: users-digest-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org



  6. Default Re: localhost not working on XP

    On Sun, 2004-03-21 at 16:49, Kim Evans wrote:
    > Thanks Chris,
    > In a console when I typed 'net stop apache2' it says
    >
    > The Apache2 service is stopping...
    > The Apache2 Service was stopped successfully.
    >
    > Entering apache -k start gave no errors
    >
    > These are the only entries in the error log
    > [Sun Mar 21 16:35:14 2004] [notice] Parent: Created child process 3468
    > [Sun Mar 21 16:35:14 2004] [notice] Child 3468: Child process is running
    > [Sun Mar 21 16:35:14 2004] [notice] Child 3468: Acquired the start mutex.
    > [Sun Mar 21 16:35:14 2004] [notice] Child 3468: Starting 250 worker threads.
    >
    > In the httpd.conf file are these entries
    > Listen 80
    > ServerName localhost:80
    >
    > typing 'netstat -a -o'
    > did not show anything with PID 80
    >
    > Kim
    >
    >

    Kim,

    Ok so far then...

    The error information you quoted is normal.

    What do you find in the netstat output after Apache is started?

    You should see apache.exe associated with port 80 of http.

    Then try http://localhost/ again and see if there are any new error
    messages.

    Also, check this file...

    c:\windows\system32\driver\etc\hosts

    Confirm that there is a line...

    127.0.0.1 localhost

    And that it does not have a '#' sign in the first column.

    We will go from there...

    Chris




    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    " from the digest: users-digest-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org



  7. Default Re: localhost not working on XP

    Chris,
    I re-starting Apache and ran the netstat it gave me
    TCP kim01:http kim01:0 LISTENING 4000


    These 2 appeared and then dissappeared
    TCP kim01:http localhost:2133 ESTABLISHED 4000
    TCP kim01:2133 localhost:HTTP ESTABLISHED 2960

    There is nothing against 80

    Going to localhost didn't add anything to the error log
    The \etc\hosts file has the 127.0.0.1 localhost.

    Kim
    ----- Original Message -----
    From: "hunter" <theantigod@sympatico.ca>
    To: <users@httpd.apache.org>
    Sent: Sunday, March 21, 2004 5:31 PM
    Subject: Re: [users@httpd] localhost not working on XP


    > On Sun, 2004-03-21 at 16:49, Kim Evans wrote:
    > > Thanks Chris,
    > > In a console when I typed 'net stop apache2' it says
    > >
    > > The Apache2 service is stopping...
    > > The Apache2 Service was stopped successfully.
    > >
    > > Entering apache -k start gave no errors
    > >
    > > These are the only entries in the error log
    > > [Sun Mar 21 16:35:14 2004] [notice] Parent: Created child process 3468
    > > [Sun Mar 21 16:35:14 2004] [notice] Child 3468: Child process is running
    > > [Sun Mar 21 16:35:14 2004] [notice] Child 3468: Acquired the start

    mutex.
    > > [Sun Mar 21 16:35:14 2004] [notice] Child 3468: Starting 250 worker

    threads.
    > >
    > > In the httpd.conf file are these entries
    > > Listen 80
    > > ServerName localhost:80
    > >
    > > typing 'netstat -a -o'
    > > did not show anything with PID 80
    > >
    > > Kim
    > >
    > >

    > Kim,
    >
    > Ok so far then...
    >
    > The error information you quoted is normal.
    >
    > What do you find in the netstat output after Apache is started?
    >
    > You should see apache.exe associated with port 80 of http.
    >
    > Then try http://localhost/ again and see if there are any new error
    > messages.
    >
    > Also, check this file...
    >
    > c:\windows\system32\driver\etc\hosts
    >
    > Confirm that there is a line...
    >
    > 127.0.0.1 localhost
    >
    > And that it does not have a '#' sign in the first column.
    >
    > We will go from there...
    >
    > Chris
    >
    >
    >
    >
    > ---------------------------------------------------------------------
    > The official User-To-User support forum of the Apache HTTP Server Project.
    > See <URL:http://httpd.apache.org/userslist.html> for more info.
    > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    > " from the digest: users-digest-unsubscribe@httpd.apache.org
    > For additional commands, e-mail: users-help@httpd.apache.org
    >
    >



    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    " from the digest: users-digest-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org



  8. Default Re: localhost not working on XP

    At 06:59 PM 3/21/2004, Kim Evans wrote:

    >ran the netstat it gave me
    >TCP kim01:http kim01:0 LISTENING 4000


    TCP delliver:http localhost:3484 TIME_WAIT

    is what I got doing a netstat from the command line on my xp home box with
    apache2 running. That's the line for apache that is so while I don't know
    what it means I am running properly.

    >Going to localhost didn't add anything to the error log
    >The \etc\hosts file has the 127.0.0.1 localhost.


    Looks ok, the first line of my C:\WINDOWS\system32\drivers\etc\hosts file says

    127.0.0.1 localhost

    Kim, in your httpd.conf file what do you have for the Listen and ServerName
    directives? Also can you ping localhost and 127.0.0.1 from the command line?

    Marty Landman Face 2 Interface Inc. 845-679-9387
    Web Installed Formmailer: http://face2interface.com/Products/Formal.shtml
    FormATable DB: http://face2interface.com/Products/FormATable.shtml
    Make a Website: http://face2interface.com/Home/Demo.shtml


    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    " from the digest: users-digest-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org



  9. Default Re: localhost not working on XP

    On Sun, 2004-03-21 at 18:59, Kim Evans wrote:
    > Chris,
    > I re-starting Apache and ran the netstat it gave me
    > TCP kim01:http kim01:0 LISTENING 4000
    >
    >
    > These 2 appeared and then dissappeared
    > TCP kim01:http localhost:2133 ESTABLISHED 4000
    > TCP kim01:2133 localhost:HTTP ESTABLISHED 2960
    >
    > There is nothing against 80
    >
    > Going to localhost didn't add anything to the error log
    > The \etc\hosts file has the 127.0.0.1 localhost.
    >
    > Kim
    > ----- Original Message -----
    > From: "hunter" <theantigod@sympatico.ca>
    > To: <users@httpd.apache.org>
    > Sent: Sunday, March 21, 2004 5:31 PM
    > Subject: Re: [users@httpd] localhost not working on XP
    >
    >

    Kim,

    At this point everything looks normal except that you cannot get the
    page to load. And I do not know what is wrong, though this complaint
    seems quite common.

    I have one other suggestion.

    My builds start and work without any pre-configuration - though you will
    most certainly want to make some later (like add mod_ssl or mod_deflate)
    - at this point you just want to get a server up and running.

    Download one of my builds from one of these locations...

    http://hunter.campbus.com
    http://tor.ath.cx/~hunter/apache

    Uninstall the other version...

    cd to the \apache\bin directory and type
    apache -k uninstall

    Leave your code there for now unless it is in c:\apache (else delete
    it).

    Unzip my build into c:\apache

    Don't modify any config information - the server should start as it is
    and give to a page when you use http://localhost.

    cd to c:\apache\bin and type
    apache -k install

    then apache -k start

    Check now to see if you can load the new installation page.

    Let me know if you can get this version working.

    You can decied later how you want to get your binaries... from the
    automatic install or mine (manual - but simple).

    Chris.







    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    " from the digest: users-digest-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org



  10. Default Re: localhost not working on XP

    Thanks Chris for all your efforts.
    I will try that and let you know

    Kim

    ----- Original Message -----
    From: "hunter" <theantigod@sympatico.ca>
    To: <users@httpd.apache.org>
    Sent: Sunday, March 21, 2004 8:19 PM
    Subject: Re: [users@httpd] localhost not working on XP


    > On Sun, 2004-03-21 at 18:59, Kim Evans wrote:
    > > Chris,
    > > I re-starting Apache and ran the netstat it gave me
    > > TCP kim01:http kim01:0 LISTENING

    4000
    > >
    > >
    > > These 2 appeared and then dissappeared
    > > TCP kim01:http localhost:2133 ESTABLISHED 4000
    > > TCP kim01:2133 localhost:HTTP ESTABLISHED 2960
    > >
    > > There is nothing against 80
    > >
    > > Going to localhost didn't add anything to the error log
    > > The \etc\hosts file has the 127.0.0.1 localhost.
    > >
    > > Kim
    > > ----- Original Message -----
    > > From: "hunter" <theantigod@sympatico.ca>
    > > To: <users@httpd.apache.org>
    > > Sent: Sunday, March 21, 2004 5:31 PM
    > > Subject: Re: [users@httpd] localhost not working on XP
    > >
    > >

    > Kim,
    >
    > At this point everything looks normal except that you cannot get the
    > page to load. And I do not know what is wrong, though this complaint
    > seems quite common.
    >
    > I have one other suggestion.
    >
    > My builds start and work without any pre-configuration - though you will
    > most certainly want to make some later (like add mod_ssl or mod_deflate)
    > - at this point you just want to get a server up and running.
    >
    > Download one of my builds from one of these locations...
    >
    > http://hunter.campbus.com
    > http://tor.ath.cx/~hunter/apache
    >
    > Uninstall the other version...
    >
    > cd to the \apache\bin directory and type
    > apache -k uninstall
    >
    > Leave your code there for now unless it is in c:\apache (else delete
    > it).
    >
    > Unzip my build into c:\apache
    >
    > Don't modify any config information - the server should start as it is
    > and give to a page when you use http://localhost.
    >
    > cd to c:\apache\bin and type
    > apache -k install
    >
    > then apache -k start
    >
    > Check now to see if you can load the new installation page.
    >
    > Let me know if you can get this version working.
    >
    > You can decied later how you want to get your binaries... from the
    > automatic install or mine (manual - but simple).
    >
    > Chris.
    >
    >
    >
    >
    >
    >
    >
    > ---------------------------------------------------------------------
    > The official User-To-User support forum of the Apache HTTP Server Project.
    > See <URL:http://httpd.apache.org/userslist.html> for more info.
    > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    > " from the digest: users-digest-unsubscribe@httpd.apache.org
    > For additional commands, e-mail: users-help@httpd.apache.org
    >
    >



    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    " from the digest: users-digest-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org



+ Reply to Thread
Page 1 of 2 1 2 LastLast