CodeIgniter Forums
Apache 403 Forbidden Errors - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Apache 403 Forbidden Errors (/showthread.php?tid=41357)



Apache 403 Forbidden Errors - El Forum - 05-05-2011

[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