Jump to content

HTTP 404 NOT FOUND


Recommended Posts

hello group,

 

          i have installed apache 2.2.4 along with php 5.2.3.....and after making the necessary changes in the conf file i restarted it and until that everything was fine....

 

when i write a dummy code such as:

 

<?php

phpinfo();

?>

 

and save it as test.php in the document root of my localhost...and when i run it in a browser i get an error such as "HTTP 404 NOT FOUND"  "The requested URL /test.php was not found on this server."

 

where as when i only run http://localhost it works...

 

what should i do?

 

please help.

 

Nishit.

Link to comment
Share on other sites

Where are you saving test.php to? By default Apache servers the htdocs/ folder within Apache's installation folder. This is where you should be saving test.php to. Unless you have modified the document root in Apaches configuration file

Link to comment
Share on other sites

  • 3 weeks later...

I am having the same problem, but am using WAMP.

 

was changing the directories at C:\wamp\www which was the WAMP defaults and I think that is where the files I should be editing for http://localhost are at

 

Setting up the latest Apache, MySQL, and PHP and figuring out just the basics of these three programs and how they work together has been so unbelievably frustrating that I am willing to pay someone through paypal for some major help. I have PHP and MySQL for Dummies! Third Edition, and cant even begin to learn because I cannot get it set up correctly, but apparently I need PHP and MySQL for Retards! But I think I am in the right place to get off the right foot and thanks in advance!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.