Really NOOB Question

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

Really NOOB Question

Postby mikebyrne » 12. November 2007 22:14

I've just installed XAMPP and was wondering where I place my docs (HTML, PHP etc) to view from the localhost?
mikebyrne
 
Posts: 5
Joined: 12. November 2007 21:45

Postby jrav » 12. November 2007 22:19

They go in the htdocs folder
jrav
 
Posts: 18
Joined: 26. July 2007 19:39

Postby mikebyrne » 12. November 2007 22:47

I've tried that but im getting an error:

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
11/12/07 21:45:18
Apache/2.2.6 (Win32) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.4

Localhost works fine
mikebyrne
 
Posts: 5
Joined: 12. November 2007 21:45

Postby Izzy » 12. November 2007 23:30

For more detail on this error look in the Apache error.log file:
xampp\apache\logs\error.log

How are you calling your file in the browser:
http://localhost/myfile.html
or
http://localhost/mywebsite/myfile.html
etc.

http://www.apachefriends.org/en/xampp-windows.html#1168

Try and give more details if you can please.


===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby mikebyrne » 12. November 2007 23:43

Browser: http://localhost/xampp/htdocs/SSNName.html

File location: C:\xampp\htdocs\SSNName.html

Error Log: [client 127.0.0.1] File does not exist: C:/xampp/htdocs/xampp/htdocs
mikebyrne
 
Posts: 5
Joined: 12. November 2007 21:45

Postby mikebyrne » 12. November 2007 23:45

Thanks that really helped!

Cheers
mikebyrne
 
Posts: 5
Joined: 12. November 2007 21:45

Postby LooseCannon » 13. November 2007 13:28

Looks like you're all fix, but just for your information:
mikebyrne wrote:Browser: http://localhost/xampp/htdocs/SSNName.html

File location: C:\xampp\htdocs\SSNName.html

Error Log: [client 127.0.0.1] File does not exist: C:/xampp/htdocs/xampp/htdocs
Try http://localhost/SSNName.html

Apache already knows where C:\xampp\htdocs\ is. The http address only needs the path _below_ that.

EDIT: Why didn't I see that Izzy had already posted that?!? Maybe my slightly different angle might help someone. :P
User avatar
LooseCannon
 
Posts: 162
Joined: 18. September 2007 12:07
Location: Hampshire, UK


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 46 guests