Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 404: Not Found

Status
Not open for further replies.

Pesho318i

Programmer
Jun 16, 2006
13
NL
Hi all,

I get the following error when trying to run a test.php file:

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


the test.php file is in the htdocs directory in apache.

I have PHP 5 installed and I've added the following to the httpd.conf file:

DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
PHPIniDir "C:\\Program Files\\PHP\\"
LoadModule php5_module "C:\\Program Files\\PHP\\php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Why doesn't it find the file test.php?
Any suggestion will be highly appreciated.

Best,
Pesho
 
What does httpd.conf say your "DocumentRoot" is? That is where you want to put your web pages. If you will be making a lot of changes to this directory, you may want to place it somewhere near the top of your directory tree so it is easier to get to. For example you could change your DocumentRoot to C:/web/htdocs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top