HostGator.com » Support Portal

Internal Server Error help, 500 error

Internal server errors can be caused by a few different things. Please check the Error Logs in cPanel for specific information.

Alternatively, here are the most common reasons for 500 errors:

(1) Bad permissions

Directories and folders should be 755. Executable scripts within the cgi-bin folder must be 755. Images, media, and text files like HTML should be 644.


(2) Bad .htaccess

In the (dot) htaccess file, you may have added lines that are either worded badly or conflicting. The best way to troubleshoot this is comment out the lines in the htaccess.

You can comment out a line in the .htaccess by adding # to the beginning. You are wise to save an original copy of any file before you make changes.

For example, if the .htaccess looks like
DirectoryIndex default.html
AddType application/x-httpd-php5 php
Then try something like this
DirectoryIndex default.html
#AddType application/x-httpd-php5 php

Broken lines and lines that start with php_flag are the most common mistakes. If you cannot determine which line is the problem, then comment out every line.


(3) Exceeding resources

It is possible your 500 error is caused by too many processes in the server queue.

Our server administrators will be able to advise you how to avoid this error. Please send email to support@hostgator.com along with the steps needed to see the error.


Article Comments

Jeff Presley
I was able to fix it. It had to do with the plugin Simple Link Cloaker. I was able to just edit an error I had made in the htaccess, using ftp.

jose noriega
File does not exist: /home/nutertor/public_html/favicon.ico
File does not exist: /home/nutertor/public_html/500.shtml
SoftException in Application.cpp:544: Directory "/home/nutertor/public_html" is writeable by group

HostGator
If you check the related article, you see the first two lines can be ignored.

The last line warns that you have writable permissions on your public_html folder. Head to File Manager or FTP and change this. Make sure the public_html folder is set to 755 or 0755.


If you have read our knowledge base and still have questions or need more information, please contact us via phone or live chat for immediate assistance.

Post Comment