How we fix CodeIgniter HTTP error 500? Linux

There are a lot of reasons as to why CodeIgniterHTTP error 500 occurs including PHP fatal isssues, error in the script like PHP misconfigurations, missing packages etc. If the CodeIgniter is of an old version, we would see similar error with the updated PHP versions. Hence, setup the PHP to a lower version.

The first step is to check the Apache error logs from the location /usr/local/apache/logs/error_log and found that mod_rewrite issue

The next step is to run the following command

                # httpd –V

Running the above command identified the issue in the Apache configuration file in the location          /etc/httpd/conf/httpd.conf

Removing the line from the configuration file LoadModulerewrite_module modules/mod_rewrite.so fixed the issue.

If the issue continues we can add the below code into the .htaccess file

<IfModulemod_rewrite.c>

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule^(.*)$ index.php?/$1 [L]

</IfModule>

At Velan, our server support engineers can help you fixing CodeIgniter HTTP error 500 on your server. We troubleshoot problems like these for our clients every day. If you are interested in our service, please fill the Quick connect form to get in touch with us

Credentials

Quick Connect With Us


    captcha
    reload