Really NOOB Question
Posted:
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?
Posted:
12. November 2007 22:19
by jrav
They go in the htdocs folder
Posted:
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
Posted:
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's
DTX 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
===========================================
Posted:
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
Posted:
12. November 2007 23:45
by mikebyrne
Thanks that really helped!
Cheers
Posted:
13. November 2007 13:28
by LooseCannon
Looks like you're all fix, but just for your information:
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.