469,336 Members | 5,248 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

Localhost not working on WAMP server

4
I have installed the wamp server correctly but when i called http://localhost/sam.php for example it didn't work it gave me (the web cannot found this page).
Mar 20 '10 #1

✓ answered by Atli

Hey.

What does the error say, exactly? And which browser are you using?
Are you 100% sure the file you are asking for exists?

If WAMP isn't working properly, I would recommend you try the XAMPP package instead. I've never had any problems with that one.

7 14756
Atli
5,058 Expert 4TB
Hey.

What does the error say, exactly? And which browser are you using?
Are you 100% sure the file you are asking for exists?

If WAMP isn't working properly, I would recommend you try the XAMPP package instead. I've never had any problems with that one.
Mar 20 '10 #2
WAMP and XAMPP and just simple programs that control apache and other applications like MySQL there both pretty good I prefer installing everything myself.

You need to make sure the file exists and is in the directory that apache is serving files from. Those are the only problems you can be having with that other then messed up rewrite rules in apache and maybe a few others I'm unaware of.
Mar 20 '10 #3
sousou
4
hi i had installed also the xamp and it's the same problem .
yes the file exists, and the page didn't open at all it said internet explorer cannot open this page !!! but there is a file which already exixts in wamp (index.php) when i wrote http://localhost/index.php it opened . so what's the problem (PS: i have windows XP and i'm using the version 5 of wamp server) and thanks for replying.
Mar 21 '10 #4
Okay lets try to go over this again. Make sure the file exists from where apache is taking your documents. Likely to be something like "C:/xampp/apache/htdocs/" if you accepted the default make sure you saved your file there unless you changed the directory from where apache will start serving your files.
Mar 21 '10 #5
Atli
5,058 Expert 4TB
@sousou
Where exactly is that file located on your hard drive?
If you change that file, does WAMP show the change?

And I assume this file is located where you tried to put your other files?
Mar 21 '10 #6
sousou
4
hi i discovered where was the problem .it was in the code php (i was writing a space btween<? and php ) that was the problem anw wamp is now working very well so thanks for allllll of u.
Mar 22 '10 #7
Hello sousou
if your php short tags not working, then please click wampserver icon -> PHP -> php.ini
in this file change short code status on
short_open_tag = On
Apr 10 '13 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by PulsarSL | last post: by
5 posts views Thread by universalbitmapper | last post: by
1 post views Thread by fatalparadox | last post: by
12 posts views Thread by Angkor | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.