Newbie ?: localhost can't find .php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
katkat
Forum Newbie
Posts: 23
Joined: Tue Mar 03, 2009 9:50 pm

Newbie ?: localhost can't find .php

Post 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?
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

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

Post 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.
katkat
Forum Newbie
Posts: 23
Joined: Tue Mar 03, 2009 9:50 pm

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

Post by katkat »

Thanks! That was the problem. Got it fixed.
Again, thanks a million!!!

Katkat
Post Reply