Internal server errors can be caused by a few different things. The most common reasons are noted below:
To narrow down on the underlying issue causing the errors some trouble shooting is needed. To begin troubleshooting:
- Log into cPanel.
- In the Logs section, click the Error Log icon.
This log will display the last 300 Error Log messages in reverse order (Newest at top). If the Error Log doesn't provide any indication of the issue, try troubleshooting by following the suggestions listed below.
To troubleshoot this error, check your file permissions.
- In cPanel, click File Manager.
- Select the button for Web Root (public_html/www).
- Place a check mark in the box titled Show Hidden Files (dotfiles).
- Click Go.
- Review the numbers listed under the Perms column in File Manager.
- Folders and Directories should be set to 755.
- Executable scripts within the cgi-bin folder must be set to 755.
- Images, media, and text files like HTML should be set to 644.
In the (dot) htaccess file, you may have added lines that are either worded incorrectly or conflicting with other configuration in the file. The best way to troubleshoot this is to comment out the lines in the .htaccess file.
You can comment out a line in the .htaccess file by adding # to the beginning of that particular line. For example, if the code in the .htaccess file looks like:
AddType application/x-httpd-php5 php
Then, try commenting it out:
#AddType application/x-httpd-php5 php
Broken lines, typographical errors and lines that start with php_flags are the most common mistakes. For more information on php_flags, please see our article on php.ini.
After commenting out a line, refresh the site to see if the issue has been resolved. If it has, that confirms that the issue was in that particular line of code in the .htacess file. If the issue has not been resolved, continue troubleshooting by commenting out additional lines and checking the site. It is recommended that you only comment out one line at a time to allow you to isolate which line is causing the problems.