500 Internal Server Error

This error is often caused by one or more of the following issues:

- Incorrect file permissions such as 777 or 775 can cause this error. Folders should be 755 and files should generally be 644.

- If you have created any php.ini files, please remove these as they are not supported and may cause issues. You can adjust PHP settings in cPanel under 'Select PHP Version' -> 'Options'.

- Check the PHP Version being used in cPanel, try selecting a different version to see if this helps.

- If you still have an error, create a backup of .htaccess and then remove the live .htaccess from the server to see if the error stops. If this solves the error you will need to add each bit of code in your .htaccess until the error returns, you'll then know which bit of code is causing the problem. Chances are the code is disabled as it is a security risk.

You can check your .htaccess file using File Manager in cPanel (you need to click the settings icon and tick the show hidden files and click save), or you can access it using FTP.

- Check your public_html folder (or the folder which contains your website if different) for an error_log file. If there is one, review the file as it will highlight any PHP errors that are occurring. Sometimes we find that a file has been deleted by mistake that can cause this issue. You can use JetBackup in cPanel to restore the missing file.

If you're still stuck, you could consider using JetBackup in cPanel to restore your account back to a point in time where you know it was working, otherwise please submit a ticket and we'll see if we can spot the problem however we will generally be trying the above steps and if unable to resolve we'd suggest doing a restore. 



Was this answer helpful?

Add to Favourites
Print this Article

Also Read
Official cPanel Manual (Views: 2479)
Official WHM Manual (Views: 2251)
PHP Time Zone Errors (Views: 670)