How to fix Codeigniter internal server 500 error?

Make sure your index.php ENVIRONMENT is defined as ‘development’.

1
2
3
4
// in index.php, around line 58.
 
    define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
    //define('ENVIRONMENT', 'production');

 

This will help to throw out error messages for your to debug the issues.

Leave a Reply

Your email address will not be published. Required fields are marked *