Localhost not working

Page 1 of 3 123 LastLast

  1. Posts : 19
    Windows 7
       #1

    Localhost not working


    Hi lads,
    New here. The name is Dave.

    I'm hoping someone can help me out.
    When I try to view http://localhost , i get nothing . Page not found.

    I have WAMP server installed. I just can't seem to figure out whats wrong. I've restarted all the services in WAMP and everything but still, nothing.

    Need this working soon for college assignments.
    All help greatly appreciated.

    Thanks,
    Dave
      My Computer


  2. Posts : 5,642
    Windows 10 Pro (x64)
       #2

    Open C:\Windows\system32\drivers\etc\host what does it say?
      My Computer


  3. Posts : 19
    Windows 7
    Thread Starter
       #3

    Hi mate,

    "Windows cant find..... check the spelling and try again" is what comes up.
    What does that tell us ? Any more ideas ?

    Thanks again,
    Dave
      My Computer


  4. Posts : 833
    Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult
       #4

    Hi Dave, welcome to Seven Forums.

    "localhost" is the name of your machine. It is 127.0.0.1, and is a loopback. I think you may have the wrong name for WAMP.

    You need to check the documentation for the Apache server to ensure you have set it up right.
      My Computer


  5. Posts : 5,642
    Windows 10 Pro (x64)
       #5

    I forgot "s" at the end of host... C:\Windows\System32\drivers\etc\hosts
      My Computer


  6. Posts : 19
    Windows 7
    Thread Starter
       #6

    Hi Schaft.
    I used WAMP on an XP machine only this week, so i am sure that I am trying to access it the right way. Also, I already tried 127.0.0.1 and I got the same error.

    Thanks,
    Dave
      My Computer


  7. Posts : 19
    Windows 7
    Thread Starter
       #7

    logicearth said:
    I forgot "s" at the end of host... C:\Windows\System32\drivers\etc\hosts
    It asks me what program I would like to use to open the file ?
    Any ideas ? What should i chose ?

    Thanks,
    Dave
      My Computer


  8. Posts : 833
    Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult
       #8

    "hosts" is a text file, so you should be able to open it with notepad.
      My Computer


  9. Posts : 19
    Windows 7
    Thread Starter
       #9

    TheSchaft said:
    "hosts" is a text file, so you should be able to open it with notepad.
    Thanks for that :)

    hosts.text file said:
    # Copyright (c) 1993-2009 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    # localhost name resolution is handled within DNS itself.
    # 127.0.0.1 localhost
    # ::1 localhost
    That is all the file has ^^

    I can only assume thats bad news. Any ideas how to sort that one out ?

    Thanks,
    Dave
      My Computer


  10. Posts : 833
    Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult
       #10

    This is getting out of my area of expertise, but maybe some of the stuff at Apache Geronimo v1.1 Documentation : D. Configurando Hosts Virtuales en Geronimo-Tomcat will help.

    It's been a long time since I set up an Apache server, but basically you need to tell it what the mapping is from an IP to a host, and that's what the "hosts" file (no extension - a Unix thing) does. Think of it as a local DNS.
      My Computer


 
Page 1 of 3 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:31.
Find Us