Page 1 of 1

Really NOOB Question

PostPosted: 12. November 2007 22:14
by mikebyrne
I've just installed XAMPP and was wondering where I place my docs (HTML, PHP etc) to view from the localhost?

PostPosted: 12. November 2007 22:19
by jrav
They go in the htdocs folder

PostPosted: 12. November 2007 22:47
by mikebyrne
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

PostPosted: 12. November 2007 23:30
by Izzy
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
===========================================

PostPosted: 12. November 2007 23:43
by mikebyrne
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

PostPosted: 12. November 2007 23:45
by mikebyrne
Thanks that really helped!

Cheers

PostPosted: 13. November 2007 13:28
by LooseCannon
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