472,354 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 software developers and data experts.

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 15059
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

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

Similar topics

2
by: Yogee | last post by:
Hello all, I dont know the exact group where I should post my questions. So, I m doing it on most of the groups which support components of LAMP stack. My client wants to use WAMP ( Windows +...
2
by: PulsarSL | last post by:
Hey I have a WAMP setup (windows/apache/mysql/php). I'm running the latest version of all of them with a default installation of all of them. PHP works great with apache (as a module, not...
5
by: universalbitmapper | last post by:
Hi, I'm trying to send an e-mail from a .php script and ie6 returns this error: Warning: mail() : Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port"...
6
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as...
8
by: Martin84 | last post by:
Hi all, im creating a mail form in PHP and I got back the following message in when testing: mail() : Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port"...
1
by: fatalparadox | last post by:
I had WAMP Server installed for a few months, everything was fine. Now all of a sudden it stopped working. It still executes the PHP but it doesn't allow me to write to a .txt file anymore. When...
12
by: Angkor | last post by:
Hi All, I am trying to pass value from a page to another page through session variable. session_start(); $_SESSION = $value("aid"); ..... $_SESSION has value within its original page. But
3
by: foodland | last post by:
hi friends... im using wamp server. when im connected to internet. im unable to open localhost index page. "working fine when not connected to internet." in mozzilla error : "Unable to...
5
by: cwjacklin | last post by:
Hi all, I use WAMP server 2, php 5.2.8 This code echo "1"; include(mnminclude.'html1.php'); echo "2"; prints out "1\r\n2" even though there are only functions in html1.php file but...
3
by: seza2b | last post by:
I've been developing a content management system over the past 5 months. Recently I began implementing AJAX and other misc. javascript into some pages. I was mainly developing and debugging using...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made but the http to https rule only works for...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.