XAMPP 404 error

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

XAMPP 404 error

Postby idletester » 05. May 2011 05:52

I keep getting this can someone please help.
I am using windows 7 and when I try this: http://localhost/xampp/htdocs/
all I get is this:

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
05/05/2011 05:48:46
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1

What am I doing wrong??
James AKA idletester. :oops:
idletester
 
Posts: 6
Joined: 05. May 2011 03:01

Re: XAMPP 404 error

Postby Sharley » 05. May 2011 06:41

idletester wrote:...when I try this: http://localhost/xampp/htdocs/
...What am I doing wrong??
Try this instead http://localhost/

Read Step3: in the \xampp\readme_en.txt file.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: XAMPP 404 error

Postby idletester » 05. May 2011 23:55

Sorry I should have explained better!

I already see the welcome page and the list to the left with Welcome, Status, Security and so on.
I have no problem getting that page. I have used https://127.0.0.1 or https://localhost.

My problem is I created a folder within xampp and htdocs called myphp. xampp/htdocs/myphp and files within that directory called index, login, member, logout and register all php extensions. When I check the status it says MySQL database ACTIVATED
PHP ACTIVATED
HTTPS (SSL) ACTIVATED
Common Gateway Interface (CGI) ACTIVATED
Server Side Includes (SSI) ACTIVATED

But if I type in the browser url: http://localhost/xampp/htdocs/ or http://localhost/xampp/htdocs/ myphp/register.php Instead of giving me the index of htdocs or the output on the browser of the register.php page I get:

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
05/05/2011 23:46:38
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1

I must be messing up somewhere but where I don't know. This is the first time I have used xampp and it's driving me mad. If I use my online server the php files work fine.
Regards, idletester AKA: James.
idletester
 
Posts: 6
Joined: 05. May 2011 03:01

Re: XAMPP 404 error

Postby Altrea » 06. May 2011 00:32

idletester wrote:But if I type in the browser url: http://localhost/xampp/htdocs/ or http://localhost/xampp/htdocs/ myphp/register.php Instead of giving me the index of htdocs or the output on the browser of the register.php page I get:

Object not found!
...
I must be messing up somewhere but where I don't know.


Sure, you don't seem to know anything about the URI to path structure of your Apache Server. Your URL is wrong!

http://www.apachefriends.org/en/xampp-windows.html#1168 says:
...The main directory for all WWW documents is \xampp\htdocs. If you put a file "test.html" in this directory, you can access it with the URI "http://localhost/test.html"...


That would be clear if you take a look into your \xampp\apache\logs\error.log file where all of your HTTP 404 Error codes will give you more information about the expected file paths your apache can't find.
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: 8294
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: XAMPP 404 error

Postby idletester » 06. May 2011 10:58

You are quite correct I don't know anything about the apache server. It is the first time I have used anything like this. All I have ever done is used html and an online server. Now I am trying to learn php and this is the reason for me using xampp so please be kind and don't shout at me too much for being a dope newbie!! Thank you for your reply and I will try to get it correct. I have been watching php tutorials on youtube to help me learn and they were using more directories than just the htdocs directory. But one question.... How come if I type in: http://localhost/xampp/htdocs/ do I get the 404 error? I am trying to understand, honestly!
Kind regards, James.
idletester
 
Posts: 6
Joined: 05. May 2011 03:01

Re: XAMPP 404 error

Postby idletester » 06. May 2011 11:12

Woopie! Thank you for all your help. I finaly got it working correctly. I was stuck in the past. I was trying to tell it where exactly the file was. Like I used to have to do in DOS.. Like: c:\users\james\documents\ Sorry for being such an idiot! Thanks again for your help!
James.
idletester
 
Posts: 6
Joined: 05. May 2011 03:01

Re: XAMPP 404 error

Postby Altrea » 06. May 2011 13:04

You are welcome. Some thing you can learn best if you solve it nearly or partly by your own instead of giving you the answer directly ;-)
Have fun with XAMPP and all the stuff and come back if you have any problem you can't solve by your own.
I wish you all the best 8)
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: 8294
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 82 guests