Welcome Guest, Not a member yet? Register   Sign In
Apache 403 Forbidden Errors
#1

[eluser]potion[/eluser]
I recently moved my fully working CI app to a new host, and encountered the error:

"You don't have permission to access http://mydomain/ci/index.php/mycontroller/mymethod on this server."

After checking permissions, etc., the only difference I could spot between the offending uri and others that were working was that mycontroller.php does not have an index() function.

I inserted an empty
Code:
function index()
into mycontroller.php:

And the problem was solved.

I thought I got the gotcha, but I've discovered more Apache 403 Forbidden Errors when accessing some php files that do have an index() method. I can't spot the difference between those that work and those that don't.

I managed to get the a phpinfo() off the old host. The only glaringly noticeable difference is:

Old Server: Server API = Apache 2.0 Handler
New Server: Server API = CGI[/quote]

Is the Apache PHP handler more forgiving than using CGI?

Denis




Theme © iAndrew 2016 - Forum software by © MyBB