500 error with CodeIgniter 500 error with CodeIgniter codeigniter codeigniter

500 error with CodeIgniter


Well, this is embarrassing. I was missing php-mysql. CodeIgniter wasn't logging the fact that it couldn't find it, nothing was appearing in /var/log/messages. Installed it and suddenly, it works. Thanks all for your answers.


I get this problem on my live server with SuPHP. To avoid it, all PHP files must have permissions 0644, and directories 0755.

To do this without a headache, do one of the following:

  • Get an FTP client that will upload using permissions you specify
  • Find a PHP script that will change permissions, based on filtering criteria, after upload
  • Get shell access to your host!


Some ideas for you:

  • Are you sure there is nothing in the log files? Have you checked both the web server's log files as well as the system logs (EG: /var/log/messages)? Have you checked all of the logs enabled in php.ini?

  • Double-check your CI configuration settings. Perhaps you are pointing to the wrong database?

  • Have you confirmed that a basic PHP script <?phpinfo(); ?> works? This would isolate the problem to CI