Unable to display the php page using apache

Hi,

I am quite a newbie for PHP. Based on the steps given in ‘http://in3.php.net/manual/en/tutorial.firstpage.php’, I have created a file hello.php and placed in C:\Program Files (x86)\Ampps\apache\htdocs\hello.php. Now when I try to access it as http://127.0.0.1/hello.php or as http://localhost/hello.php, I am seeing ‘The webpage cannot be found’ error page. Can anyone pls help me in fixing this.

I can start and stop the Apache web server. Ensured the httpd.conf is edited for pointing it to right php.ini file.

Am I placing the php file in the right location?.
How to check if my apache is working fine?
what is the issue here and how to fix it?

My system specs:
Windows XP 64-bit. Dowloaded WAMP package (AMPPS)and installed Apache, PHP and Mysql.

Thanks,
Praveen

I would first of all check that you have the correct directory for the file. Look for DocumentRoot. It would look something like this:

DocumentRoot C:/some/folder

Please post back with where the DocumentRoot points to.

I know this is might sounds insulting, but if you kept the original index.html file in the www folder then check to see if that pulls up by going to the localhost or 127.0.0.1 If it doesn’t then check to be sure you have WAMP running.

Sponsor our Newsletter | Privacy Policy | Terms of Service