Internal Server Error, Error 500

One of the most common problems shows on-screen display an error instead of the page that you expect:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


This error can occur for several reasons. The specific cause can find by going to the Control Panel and select menu "Error Log". There you will see the last 300 errors encountered while working on your site.

Incorrect rights of files and directories

The rights of the file which you are trying to run allow not only the owner to write in it, but everyone else. In this case, in Error Log you will see a message like this:

[2006-09-20 20:21:47]: error: file is writable by others:

(/home/cpaneluser/public_html/path/to/file/file.php)

We recommend putting the rights of the file: 644 with aim to hide the error. You can do this through the control panel or your FTP client which you use.

The rights of the directory where the file is located allow not only the owner to write in it, but everyone else. In this case, in Error Log will see a message like this:

[2006-09-20 20:20:53]: error: directory is writable by others:

(/home/cpaneluser/public_html/path/to/directory)

We recommend putting the rights of directory: 755 with aim to hide the error. You can do this through the control panel or your FTP client which you use.

You can quickly and easily adjust the rights of files and directories in your hosting account through control panel cPanel  from the menu "Fix Permissions by SuperHosting". See more about Fix Permissions by SuperHosting.
You can correct rights of directories and files of your hosting account by using the following script.

Incorrect directives in .htaccess file

If enrollment rules in .htaccess file has committed syntax or spelling error, then the rule could be processed to obtain error Error 500. Information can again find in the menu "Error log" in cPanel. Upon receipt of the error the message is similar:

[Mon May 28 15:48:54 2012] [alert] [client XXX.XXX.XXX.XXX]

/home/cpaneluser/public_html/.htaccess: Invalid command 'RewriteEngineOn', perhaps misspelled or defined by a module not included in the server configuration

In the example above, the error is written merged "RewriteEngineOn", which is not correct. The correct spelling is:

RewriteEngine On


Was this article helpful?

mood_bad Dislike 92
mood Like 92
visibility Views: 3627