Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i am learning php,i downloded the xampp.and Apache server,Mysql are running properly in Xampp Control panel. I tried with a simple program that is hello world,i created a new folder in htdocs, and i saved my program in that new folder with .php extention. But when i run the program then is showing a error as follows

------>
    Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
18-5-2010 11:51:44
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 
share|improve this question
Have you installed php in CGI mode or with the apache module? – Kazar May 18 '10 at 10:00
If you entered the URL manually please check your spelling and try again.. Have you tryed? are gyou sure the URL you enter into the address bar is correct? – Strae May 18 '10 at 10:09
Where are your logs? – Ignacio Vazquez-Abrams May 18 '10 at 10:47

migrated from stackoverflow.com May 18 '10 at 10:04

2 Answers

Obvious answer: Make sure you are entering in http://localhost/ to start.

Can you get apache to serve up any HTML files? Have you found where they are located?

share|improve this answer

Take a look at your logs, in particular C:\xampp\apache\logs\error.log presuming xampp is installed in c:\xampp. There should be something useful in there pointing you in the right direction.

If http://localhost/ is running ok then there should be no reason when a file placed in htdocs would give an error 404. Any errors in your PHP would generate a PHP error or error 500 or at worst a white screen of death. A 404 usually means that you are actually getting an error 404 for some reason.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.