Page 1 of 1

Newbie ?: localhost can't find .php

Posted: Tue Mar 03, 2009 9:57 pm
by katkat
I installed wamp server. I created a .php program called test.php and saved it in the htdocs folder. When I execute the program, using: http://localhost/test.php
I get a message that says

"Not Found

The requested URL /test.php was not found on this server."

I have double checked to make sure the program is there. I noticed that the Apache files are loaded in a folder called bin in the wampserver folder.

Any ideas?

Re: Newbie ?: localhost can't find .php

Posted: Tue Mar 03, 2009 10:27 pm
by susrisha
must be the document root problem.

1. Check in the httpd.conf file for the following

Code: Select all

 
DocumentRoot
 
See if it directs to the htdocs folder exactly.

2. Check if your apache is running or not.

Re: Newbie ?: localhost can't find .php

Posted: Wed Mar 04, 2009 10:29 am
by katkat
Thanks! That was the problem. Got it fixed.
Again, thanks a million!!!

Katkat