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).
Localhost not working on WAMP server
Collapse
X
-
-
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.Comment
-
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.Comment
-
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.Comment
-
but there is a file which already exixts in wamp (index.php) when i wrote http://localhost/index.php it opened
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?Comment
-
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 = OnComment
Comment