Reputation: 43
All the servers are running correctly in XAMPP, and I when I run http://localhost the XAMPP page comes up. However when I try to run a php through xampp by accessing the directory where the file is stored, i.e.,
http://localhost/Applications/XAMPP/xamppfiles/htdocs/gallery.php
I get error 404. I've tried loads of different paths, but here is the path to the file in finder path image
Any ideas?
Thanks!
Upvotes: 1
Views: 3021
Reputation: 919
your webserver is resolving the domain localhost
to a specific directory, the so called document root
. (this can be adjusted in your server config). I would assume that it points to /Applications/XAMPP/xamppfiles/htdocs
. so your file should be accessible via
Upvotes: 1