| Windows 7: Localhost not working |
17 Oct 2009
|
#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 System Specs |
| |
17 Oct 2009
|
#2 | | |
Open C:\Windows\system32\ drivers\etc\host what does it say? | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Alienware Aurora ALX R4 OS Windows 7 x64 (SP1) CPU Intel Core i7-3930K (3.2GHz, Turbo 4GHz) Motherboard Alienware Aurora-R4 x79 Memory 4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz) Graphics Card Nvidia Geforce GTX 690 (Stock) Sound Card RealTek Integrated Audio Monitor(s) Displays Dell UltraSharp U3011 Screen Resolution 2560x1600 PSU 875W Some Dell PSU <.< Hard Drives Samsung P830 256 GB, WD Raptor 150GB, 2x 1TB HDDs Other Info Dell Inspiron Mini 10v (Intel Atom N270 1.6 GHz; 1GB; Windows 7 Ultimate) |
17 Oct 2009
|
#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 System Specs | | |
17 Oct 2009
|
#4 | | Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult Weatherford, Texas |
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 System Specs | | System Manufacturer/Model Number Gateway, Toshiba Laptop, and Home Brew OS Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult CPU Intel I3, Cerelon, Pentium 4 @ 3Ghz Motherboard Intel, Intel, Asus Memory 8G, 3G, 3G Graphics Card On-board Intel, On-board nVidia, nVIDIA card Sound Card on-board, on-board, SoundBlaster Monitor(s) Displays Hannspree HF237, Toshiba, SyncMaster 931B Screen Resolution default (all) Keyboard standard wired (all) Mouse standard wired (all) PSU 300w, unk, 650w Case black, black, grey Cooling air (all) Hard Drives 1T internal, 320G internal, 160G internal, 1T networked Internet Speed 6M down, 768K up Other Info Home LAN through Linksys hub to 4 port and wireless switch/router. Networked HP 2600n. Wife's computer running Windows 7, and spare laptop running Ubuntu "Karmic Kola" (9.10). |
17 Oct 2009
|
#5 | | |
I forgot "s" at the end of host... C:\Windows\System32\ drivers\etc\hosts | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Alienware Aurora ALX R4 OS Windows 7 x64 (SP1) CPU Intel Core i7-3930K (3.2GHz, Turbo 4GHz) Motherboard Alienware Aurora-R4 x79 Memory 4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz) Graphics Card Nvidia Geforce GTX 690 (Stock) Sound Card RealTek Integrated Audio Monitor(s) Displays Dell UltraSharp U3011 Screen Resolution 2560x1600 PSU 875W Some Dell PSU <.< Hard Drives Samsung P830 256 GB, WD Raptor 150GB, 2x 1TB HDDs Other Info Dell Inspiron Mini 10v (Intel Atom N270 1.6 GHz; 1GB; Windows 7 Ultimate) |
17 Oct 2009
|
#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 System Specs | | |
17 Oct 2009
|
#7 | | |

Quote: Originally Posted by logicearth 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 System Specs | | |
17 Oct 2009
|
#8 | | Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult Weatherford, Texas |
"hosts" is a text file, so you should be able to open it with notepad. | My System Specs | | System Manufacturer/Model Number Gateway, Toshiba Laptop, and Home Brew OS Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult CPU Intel I3, Cerelon, Pentium 4 @ 3Ghz Motherboard Intel, Intel, Asus Memory 8G, 3G, 3G Graphics Card On-board Intel, On-board nVidia, nVIDIA card Sound Card on-board, on-board, SoundBlaster Monitor(s) Displays Hannspree HF237, Toshiba, SyncMaster 931B Screen Resolution default (all) Keyboard standard wired (all) Mouse standard wired (all) PSU 300w, unk, 650w Case black, black, grey Cooling air (all) Hard Drives 1T internal, 320G internal, 160G internal, 1T networked Internet Speed 6M down, 768K up Other Info Home LAN through Linksys hub to 4 port and wireless switch/router. Networked HP 2600n. Wife's computer running Windows 7, and spare laptop running Ubuntu "Karmic Kola" (9.10). |
17 Oct 2009
|
#9 | | |

Quote: Originally Posted by TheSchaft "hosts" is a text file, so you should be able to open it with notepad. Thanks for that 
Quote: Originally Posted by hosts.text file # 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 System Specs | | |
17 Oct 2009
|
#10 | | Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult Weatherford, Texas |
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 System Specs | | System Manufacturer/Model Number Gateway, Toshiba Laptop, and Home Brew OS Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult CPU Intel I3, Cerelon, Pentium 4 @ 3Ghz Motherboard Intel, Intel, Asus Memory 8G, 3G, 3G Graphics Card On-board Intel, On-board nVidia, nVIDIA card Sound Card on-board, on-board, SoundBlaster Monitor(s) Displays Hannspree HF237, Toshiba, SyncMaster 931B Screen Resolution default (all) Keyboard standard wired (all) Mouse standard wired (all) PSU 300w, unk, 650w Case black, black, grey Cooling air (all) Hard Drives 1T internal, 320G internal, 160G internal, 1T networked Internet Speed 6M down, 768K up Other Info Home LAN through Linksys hub to 4 port and wireless switch/router. Networked HP 2600n. Wife's computer running Windows 7, and spare laptop running Ubuntu "Karmic Kola" (9.10). Localhost not working problems? All times are GMT -5. The time now is 06:00 PM. | |