Reputation: 2697
Fresh install of a Debian server. Apache2, PHP5.
When I try to browse a PHP file I get 403 Forbidden. I am able to browse to html files.
I have tried the following:
Cant think of what else to try ?
Upvotes: 3
Views: 4561
Reputation: 4754
Perform chmod 755
of the directory in which the PHP scripts reside.
After that restart the Apache/nginx server
or
if above method not work then contact your hosting provider to whitelist that url to phpscript because it can be issue with mod_security. Its the most annoying thing hostgator user are facing.
Upvotes: 2
Reputation: 9671
Check if the alow/deny pattern in your http.conf is set correctly. What's written to the apache error log?
Upvotes: 0