My first guess would be an issue with the .htaccess file (or httpd.conf file).
Something to keep in mind:
The way that Apache handles .htaccess rules is "cascading" meaning that it will check every .htaccess file along the path of the file you are trying to access, so if you have some rule forbidding users from viewing any non-index files at any point, it will affect all deeper directories.
Having said that, if you know the issue isn't with the httpd.conf
file, check to see if the root of the publishing path has a .htaccess
file. Change it to .htaccessold
and see if you can access any files in the htdocs directory other than index.
Two questions:
- Do you get this for all files, or just php files? can you see image files, etc?
- What about index.html? If you change your
index.php
to tempindex.php
and create a new blah file called index.html
can you see that?
Good luck. Keep me posted.