To confirm, is this computer running Mac OS X Server, or is this Mac OS X client? (This is the server discussion forum, though the reference to "Web Sharing" implies the client variant.)
Hour after Hour, same message... The requested URL /test.php was not found on this server.
Using:
http://localhost/test.php (file is actually in my Sites folder)
Where is the request coming from? Check the Apache access logs here. Are you requesting the file? Or is the request from remote?
Even if I drag and drop it on Safari or Firefox, I get this message.
Drag and drop what to where?
If you're loading files into the web directories, ensure the files and the directories are readable by Apache, but are not writable by and not owned by Apache.
Web Sharing is on, Apache server is running, MySQL is running, same file serves up fine from the web. It's the <?php phpinfo() ?> test file everyone uses to check MySQL/PHP server.
And more than a few attacks look for this file, too.
Also troubled with protocol for "root folder" address. Is it localhost or localhost/Users/~long_name/etc.... nothing is working.
http://localhost/~shortname
Various of the client environments and configurations block access outside the web directories, too. (Usually deliberately and by default.)
Any ideas or suggestions???
We are (well, OK, maybe I am) going to need a few more words around what you're trying to do, and what you're seeing here. Some more details here will help.