How to get rid of 500 Internal Server Error

To provide greater user safety and convenience on our servers PHP runs as SUPHP. PHP scripts are running on behalf of a user, allowing us to monitor all the activity that comes from customers and, if necessary, to suppress the activities of their scripts.

 

As a side effect of this technology, you may encounter 500 Internal Server Error when uploading site files to server. To get rid of this error you should follow three simple rules:

 

1)      Permissions to all folders (including public_html) should be set to 755, which is enough for writing files. There is no need to set permissions to 777, it is unsafe, as any other hosting user, logged to your server, will be able to upload any files to this folder.

2)      Permissions to all files should be set to 644, except those, to which website writes data - they should be set to 755.

3)      Htaccess file should not contain strings that begin with php_, for example php_flag option off. Remove or comment out these lines. If you need your php directives, add them to php.ini file (see related article in our Knowledge base). Note that .htaccess file is not displayed in file manager, but it works. To edit it, open the same .htaccess file on your computer, make necessary changes and upload to server via CPANEL. The file will be replaced automatically.

 

If you think that you follow all these rules, but the site still gives this error - contact our support team. They will surely help you.

 

This article is written specifically for the best hosting for your web site - Schneider-host.ru