473,734 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Localhost not working on WAMP server

4 New Member
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
7 15235
Atli
5,058 Recognized Expert Expert
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
philipwayne
50 New Member
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 New Member
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
philipwayne
50 New Member
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 Recognized Expert Expert
@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 New Member
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
umairkhanafridi
1 New Member
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
6909
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 + apache + MySQL + PHP ). But the site performance is very slow on windows. I dont know the exact reasons. I have seen some benchmark details on internet. But still they are not
2
17170
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 cgi), except that sessions aren't working. The script at the bottom of this post never increments my hit count. Do I need to turn sessions on somehow in php.ini? Thanks,
5
12331
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" setting in php.ini or use ini_set() in C:\wamp\www\PAMWD\chap11email\sendmail.php on line 12
6
7978
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 "include not found", rather much of the page is blank where the included menus, etc would be, and the CSS is not attached. thanks so much!!! My httpd.conf looks like this:
8
2828
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" setting in php.ini or use ini_set() in C:\wamp\www\email_script.php on line 38# As you can tell from the localhost reference I am using a server on my own computer for testing purposes.Is this the only reason why it wont work or can it actually be...
1
4332
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 I put the same files on the web it works great. And it worked with wamp server before yesterday. So I uninstalled WAMP server and installed WAMP Server2 and it still has the same issues.
12
1594
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
1774
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 connect" help me bye
5
2661
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 no echo statement.
3
9777
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 Firefox and Chrome (because my IE 7 stopped working ;-D about a year ago). I'm running a WAMP server on Windows XP, and view my site through http://localhost . Everything is fine and dandy. So today, I go on a browser binge (because my CMS is...
0
8956
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8783
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9459
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6041
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4819
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3267
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.