There are a number of reasons that can cause such error but the best way to troubleshoot it is to check the server error logs.
Indsoft Systems customers can do this via cPanel, under Error Log. There you will see a list of the last error messages generated by your website. In this list you will find information about each error including:
- The date and time of the error.
- Description of the error.
- Information about which folder or file is possibly generating the error.
Here are some examples of the most common issues that can generate a 500 Internal Server Error:
The error above is mostly caused by incorrect permissions of the .htaccess file or the folder it is in (in the example below that would be the public_html folder). You need to ensure that the .htaccess file has 644 permissions and your directories have 755 permissions.
You can modify the files/folders permissions via SSH, FTP, or using File Manager in cPanel.
The error shows that there are incorrect directives inside the specific .htaccess.
Make sure to revert any recent changed with the .htaccess, as they are the most probable cause.
This error happens when the permissions of one of your files are too open.
In the example above, filename would be the name of the file in question.
To resolve it, you need to change the permissions of the problematic file to 644.
These are also the recommended permissions for all your website files.
There are multiple reasons for this error to occur, caused by a large variety of different factors.
Nevertheless, most often it is the result of having a very large file as a part of your website.
On Indsoft Systems shared hosting servers there is a size limit for files that can be opened through the web.
The limit is 2GB, and if your website includes a larger file, this will result in the above error.
You can check your website's files either via SSH, FTP, or the File Manager to locate the one causing the problem. Very often these are logs with PHP errors.
On Indsoft Systems servers a log file is created automatically if you site's PHP scripts produce any non-critical errors or warnings during their execution.
The log file's name is php_errorlog and it is located in the same directory as the script that produced the errors. Usually, this would be your site's directory.