473,883 Members | 1,633 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 15270
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
6914
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
17181
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
12337
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
7992
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
2834
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
4337
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
1602
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
1779
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
2675
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
9799
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
9936
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
10742
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...
1
10846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10412
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7970
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5797
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5990
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4610
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
3
3231
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.