Jonathan Clark
Jonathan Clark

Reputation: 20538

Cannot get base controllers to work for Codeigniter on remote server

I am building a web app using Codeigniter 2.0.3. I need to create base controller classes and I follow the guide made buy Phil.

http://philsturgeon.co.uk/blog/2010/02/CodeIgniter-base-Classes-Keeping-it-DRY

All works perfectly fine offline on my MAMP server. But when I upload the same code to my Amazon EC2 server all I get is a 500 error.

On my local machine I am running MacOS 10.7.2 with PHP version 5.3.6. On my remote server I am running Ubuntu 11.10 with PHP version 5.3.6 aswell.

The 500 error is giving me no clues on what the problem is. The base controllers that I create are "empty" (no code other than the constructor).

Thankful for all input!

UPDATE

Solved the problem. It was a simple case sensitive issue. My base controller classes was named for example Public_controller but was addressed as Public_Controller in the controllers. Changed case and now it works fine.

Upvotes: 0

Views: 343

Answers (1)

Jonathan Clark
Jonathan Clark

Reputation: 20538

Solved the problem. It was a simple case sensitive issue. My base controller classes was named for example Public_controller but was addressed as Public_Controller in the controllers. Changed case and now it works fine.

Upvotes: 1

Related Questions