The 500 Internal Server Error is one of the most common web issues. It means the server encountered an unexpected condition that prevented it from fulfilling the request. Here is how to troubleshoot it in cPanel:
Method 1: Check for Corrupt .htaccess File
Often, a 500 error is caused by a syntax error or corrupt rule inside your .htaccess file.
- Log in to cPanel and open the File Manager.
- Go to the
public_htmldirectory. - Click on 'Settings' in the top right, check Show Hidden Files (dotfiles), and click Save.
- Locate your
.htaccessfile, right-click, and rename it to.htaccess_old. - Reload your website. If it works, the error was in
.htaccess. Go to your WordPress Dashboard -> Settings -> Permalinks, and click 'Save Changes' to generate a clean.htaccessfile.
Method 2: Increase PHP Memory Limit
Sometimes your scripts require more memory than what is currently allocated.
- In cPanel, search for Select PHP Version or MultiPHP INI Editor.
- Select your domain.
- Find the
memory_limitdirective and change it to a higher value, like256Mor512M. - Click Save and refresh your website.
Method 3: Debug Plugin or Theme Conflicts (WordPress)
- In the cPanel File Manager, go to
public_html/wp-content. - Rename the
pluginsfolder toplugins_old. This disables all plugins. - Check your site. If it loads, rename the folder back to
pluginsand disable them one-by-one in the WP admin panel to isolate the culprit.
Was this tutorial helpful to you?