Problem with localhost
Posted by: Morre_ (---.tbcn.telia.com)
Date: March 27, 2008 11:22PM

Hello.

I installed WAMP server 2.0 on my brand new Vista laptop.
When i try to access localhost i get an error message that sais "the web page cannot be found" but i can access the ip adress (127.0.0.1)

I have installed WAMP server 2.0 on an XP computer and it works perfect!
I had AVG before but I uninstalled it and my computor came with IIS but i switched it off.

Does anyone have a clue what the problem is?

Please help me!



Edited 3 time(s). Last edit at 03/27/2008 11:35PM by Morre_.

Options: ReplyQuote
Re: Problem with localhost
Posted by: paziek (217.153.4.---)
Date: March 28, 2008 12:13AM

same here, using XP though

Options: ReplyQuote
Re: Problem with localhost
Posted by: kreoton.net (62.212.200.---)
Date: April 10, 2008 09:47PM

hi had same problem but on vista i think i know how to help you smiling smiley

first open cmd and ping localhost

if you get ip not 127.0.0.1 edit a hosts file in c:\windows\system32\drivers folder it should look like this


<...>


127.0.0.1 localhost

Options: ReplyQuote
Re: Problem with localhost
Posted by: pmillsaps (---.hot.res.rr.com)
Date: April 11, 2008 03:46AM

The file in Vista is the c:\windows\system32\drivers\etc\hosts and it seems to have an extra entry in it, which seems to be causing the problem. Mine had this in it:


127.0.0.1 localhost
::1 localhost

I just commented out the second entry, and that fixed the issue. I didn't even need to reboot.


127.0.0.1 localhost
# ::1 localhost

Options: ReplyQuote
Re: Problem with localhost
Posted by: mike741 (---.hsd1.ca.comcast.net)
Date: April 14, 2008 02:16AM

im having a similar problem except its the other way around: when i type in [localhost] it takes me to the right page but then if i use my ip address it says it can't be loaded. any tips or suggestions?

Options: ReplyQuote
Re: Problem with localhost
Posted by: akurlansky (12.41.4.---)
Date: April 16, 2008 08:42PM

I donwloaded and installed php/apache/mysql on my new dell latitude XP home edition. I am currently simply trying to run a "hello world" php script and I get "page not found" in the web browser. I created the script with notepad and it has a php extension but is seen as a text document by the system. Is that an issue or is something else not configured correctly? I also created a test directory under wamp/www and installed the script there. This test directory does show up on the wamp localhost home page.

Do I need to do something with making changes to an .ini files, etc?

What am I missing? Any suggestions would be appreciated.

Thanks
Al Kurlansky

Options: ReplyQuote
Re: Problem with localhost
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: April 16, 2008 09:33PM

are u using <?php ?> tags? and not <? ?>tags. short tags aer not enabled

Options: ReplyQuote
Re: Problem with localhost
Posted by: akurlansky (12.41.4.---)
Date: April 16, 2008 11:20PM

the line of code is:
<?php echo '<p>Hello World</p>'; ?>

Options: ReplyQuote
Re: Problem with localhost
Posted by: PKZeppelin (---.bredband.comhem.se)
Date: April 18, 2008 05:13AM

I had the same truble, thanks to you all solved it smiling smiley

Options: ReplyQuote
Re: Problem with localhost
Posted by: akurlansky (12.41.4.---)
Date: April 18, 2008 04:11PM

My problem turned out to be the fact that I saved it as a text file. I should have saved it as "all files".

Options: ReplyQuote
Re: Problem with localhost
Posted by: yfastud (Moderator)
Date: April 18, 2008 05:23PM

Actually, you should disable "Hide known extension..." in windows property to see your real extension ;-)

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Problem with localhost
Posted by: LeendertB (---.adsl.xs4all.nl)
Date: February 08, 2011 10:48PM

Hi
I have edited localhost (removing ::: 1 localhost line)
that did not work

BUT stopping the program GLADINET (presents network drives like Live / Skydrive as a drive letter) did the trick! Localhost is running again.

So be sure to stop everything that might be running port 80 thingies.

Hope this helps

Options: ReplyQuote


Sorry, only registered users may post in this forum.