HTTP Error 500 - Internal server error

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.

 

Was this answer helpful?

 Print this Article

Also Read

How do I create a redirect for my site?

These rules should be added to your .htaccess file located in your public_html folder. This rule...

What is phpSuExec?

phpSuExec (pronounced sue-eksek) is a more secure environment for PHP. All of our shared servers...

What is the meaning of owner, group, and everyone in the permissions panel?

- Owner defines the permissions set for your main FTP account. - Group defines permissions valid...

What is php.ini ?

The php.ini file is a special file for phpSuExec (pronounced php-soo-ec-sec). The...

Do I use localhost or remotemysqlhost for my mysql connection ?

You can view whether your account is using localhost or remotemysql host in your cPanel...