Object not found. Error 404

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Object not found. Error 404

Postby novice » 22. July 2014 14:18

Hi ,
I installed xampp server and it works perfectly. However, when I access my php file (index.php) stored in (D:\xampp\htdocs\myproject) by using the url http://localhost/myproject/index.php. It gives me an error pasted below.

Will anybody please advice me, how to fix it; and how I may access my index.php file that includes only an echo statement.:)

Regards,

================
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
7/22/2014 6:17:48 PM
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
novice
 
Posts: 4
Joined: 22. July 2014 14:09
Operating System: Windows Xp

Re: Object not found. Error 404

Postby JJ_Tagy » 22. July 2014 14:54

Did you accidentally allow the system to name the file index.php.txt or something similar?
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: Object not found. Error 404

Postby novice » 23. July 2014 06:21

I guarantee that file name is ''index.php''
novice
 
Posts: 4
Joined: 22. July 2014 14:09
Operating System: Windows Xp

Re: Object not found. Error 404

Postby Altrea » 23. July 2014 06:40

Apache does not lie.
Error 404 is thrown in 99,5% of all cases only if the file you are trying to request is not existent (in 0,5% of all cases because the developer itself fires this HTTP status for other reasons).

So a part of your information must be incorrect.
Either you are using the wrong URL
or your file is not saved at the correct path
or the file has the wrong file extension (hidden known file extensions in windows?)
or you have defined rewrites/redirects that route the request to a different location
or you have changed any fundamental on your Apache config (like redefining the DocumentRoot)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Object not found. Error 404

Postby novice » 23. July 2014 07:11

Apache does not lie.
=======================
Yes, machine does not have the ability to lie. But, one day, we programmer may be able to learn her this ability:)


Error 404 is thrown in 99,5% of all cases only if the file you are trying to request is not existent (in 0,5% of all cases because the developer itself fires this HTTP status for other reasons).

So a part of your information must be incorrect.
Either you are using the wrong URL
==========
I checked it is right
or your file is not saved at the correct path
I checked it is at correct path.

or the file has the wrong file extension (hidden known file extensions in windows?)
I checked, it is not the case.

or you have defined rewrites/redirects that route the request to a different location
or you have changed any fundamental on your Apache config (like redefining the DocumentRoot)

I did not modify any file
novice
 
Posts: 4
Joined: 22. July 2014 14:09
Operating System: Windows Xp

Re: Object not found. Error 404

Postby novice » 23. July 2014 07:19

I am using an older version of XAMPP 1.7.3! and windows XP.
novice
 
Posts: 4
Joined: 22. July 2014 14:09
Operating System: Windows Xp

Re: Object not found. Error 404

Postby Altrea » 23. July 2014 14:11

Then i am not able to help you because i am absolutely clueless what the issue could be
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Object not found. Error 404

Postby Nobbie » 23. July 2014 14:38

Could you show us the error log as well as the acess log?
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 96 guests