Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Localhost not working

17 Oct 2009   #1

Windows 7
 
 
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 SpecsSystem Spec
.

17 Oct 2009   #2

Windows 8.1 Pro (x64)
 
 

Open C:\Windows\system32\drivers\etc\host what does it say?
My System SpecsSystem Spec
17 Oct 2009   #3

Windows 7
 
 

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 SpecsSystem Spec
.


17 Oct 2009   #4

Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult
 
 

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 SpecsSystem Spec
17 Oct 2009   #5

Windows 8.1 Pro (x64)
 
 

I forgot "s" at the end of host... C:\Windows\System32\drivers\etc\hosts
My System SpecsSystem Spec
17 Oct 2009   #6

Windows 7
 
 

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 SpecsSystem Spec
17 Oct 2009   #7

Windows 7
 
 

Quote   Quote: Originally Posted by logicearth View Post
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 SpecsSystem Spec
17 Oct 2009   #8

Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult
 
 

"hosts" is a text file, so you should be able to open it with notepad.
My System SpecsSystem Spec
17 Oct 2009   #9

Windows 7
 
 

Quote   Quote: Originally Posted by TheSchaft View Post
"hosts" is a text file, so you should be able to open it with notepad.
Thanks for that

Quote   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 SpecsSystem Spec
17 Oct 2009   #10

Windows 7 x64 HP, Windows 7 HP, Windows 7 Ult
 
 

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 SpecsSystem Spec
Reply

 Localhost not working




Thread Tools



Similar help and support threads for2: Localhost not working
Thread Forum
Solved Apache: Localhost Not Working Network & Sharing
Apache/PHP - localhost stopped working. How do I get it to work again? Network & Sharing
Solved Windows 7 x64 and localhost to web Network & Sharing
localhost problems Network & Sharing
Cant browse to localhost with iis 7 and 2 ips Network & Sharing
Localhost FTP For Dreamweaver Network & Sharing
ping localhost wrong ip Network & Sharing

Our Sites

Site Links

About Us

Find 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 07:00 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33