http://Localhost works but projects don't
Posted by: etherkye (---.popl.cable.ntl.com)
Date: March 14, 2010 09:22PM

If i go to [127.0.0.1] or [localhost] i get the default wamp index page with all the loading extensions list.

However if i click a folder called 'inv' in the projects list (my only project) then it says
'internet explorer cannot display the webpage.'

My error log is empty and my access log says

127.0.0.1 - - [14/MAr/2010:20:17:17 +0000] "GET /inv HTTP/1.1" 301 229
127.0.0.1 - - [14/MAr/2010:20:17:17 +0000] "GET /inv/ HTTP/1.1" 302 -
127.0.0.1 - - [14/MAr/2010:20:17:17 +0000] "GET /inv/log_in.php HTTP/1.1" 302 5207
127.0.0.1 - - [14/MAr/2010:20:17:17 +0000] "GET /inv/index.php HTTP/1.1" 302 -
127.0.0.1 - - [14/MAr/2010:20:17:17 +0000] "GET /inv/log_in.php HTTP/1.1" 302 5207
127.0.0.1 - - [14/MAr/2010:20:17:17 +0000] "GET /inv/index.php HTTP/1.1" 302 -
127.0.0.1 - - [14/MAr/2010:20:17:17 +0000] "GET /inv/log_in.php HTTP/1.1" 302 5207
127.0.0.1 - - [14/MAr/2010:20:17:17 +0000] "GET /inv/index.php HTTP/1.1" 302 -
127.0.0.1 - - [14/MAr/2010:20:17:17 +0000] "GET /inv/log_in.php HTTP/1.1" 302 5207
127.0.0.1 - - [14/MAr/2010:20:17:17 +0000] "GET /inv/index.php HTTP/1.1" 302 -
127.0.0.1 - - [14/MAr/2010:20:17:17 +0000] "GET /inv/log_in.php HTTP/1.1" 302 5207

Contents of index.php
<?PHP
header("Location: ".$_SERVER['PHP_SELF']."/../log_in.php"winking smiley;
?>

log_in.php actuly does the work. I use index.php as a redirect as theres also a copy called default.php so both show the same page to get past some of the settings of the last IT manager here.

This is on a tablet running windows 7 starter (free junk) with wamp running apache 2.2.11 and PHP 5.2.11

Oh, while i was working on this the wamp server suddenly refused to start apache. Apache said that port 80 was in use. Apparently while i was working windows installed IIS7.5 and turned it on, even though they say it doesn't come on starter or home...

Options: ReplyQuote
Re: http://Localhost works but projects don't
Posted by: yfastud (Moderator)
Date: March 15, 2010 01:15AM

IIS and Apache/Wamp are both web server and might conflict in some way, so you have to disable IIS in order for Wamp to work

Disable IIS in Vista/7:

Control Panel, Uninstall Programs, Turn Widows Features On or Off, uncheck Internet Information Services

Disable IIS in XP:

Control Panel, Add/Remove Programs, Add/Remove Windows Components, uncheck Internet Information Services (IIS)

Restart computer, then restart Wamp

Also, open file hosts in folder C:\WINDOWS\System32\drivers\etc and delete anything in there and have only this line and nothing else

127.0.0.1 localhost

Have fun,

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

Options: ReplyQuote
Re: http://Localhost works but projects don't
Posted by: etherkye (---.popl.cable.ntl.com)
Date: March 15, 2010 11:24AM

Did that as soon as it installed itself.

The wamp home page shows so i know it's working, but the projects just display errors.

Options: ReplyQuote
Re: http://Localhost works but projects don't
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: March 15, 2010 06:12PM

If you go to log_in.php (http://localhost/inv/log_in.php) directly does it load?

You should check your PHP error log too in case there is something in your code which is preventing the page from loading. To check the PHP error log Left click WAMP tray icon and choose PHP > error log. Scroll to the bottom of the file for the latest errors.

Options: ReplyQuote


Sorry, only registered users may post in this forum.