A 500 Internal Server Error indicates that the server encountered an unexpected condition that prevented it from fulfilling a request. This article helps cPanel account users identify and resolve the most common causes of this error on their websites.
Before you begin
You will need:
A cPanel account
Access to the website's administrative dashboard (such as the WordPress admin area, if applicable)
The specific URL where the 500 error is occurring
Check the site's error logs
The most accurate way to identify the cause of a 500 error is to review the server's error logs. These logs record the specific script errors or configuration issues causing the failure.
Log in to your cPanel account.
Locate the Metrics section and select Errors (or Errors Log).
Review the most recent entries. Look for lines containing "Fatal error," "syntax error," or "permission denied" associated with your domain.
Note the specific file path and line number mentioned in the error.
Check for a corrupted .htaccess file
A common cause of 500 errors is a syntax error or an unsupported command within the .htaccess file.
Open the File Manager in cPanel.
Navigate to the root directory of your website (usually
public_html).Locate the
.htaccessfile. (If you do not see it, ensure "Show Hidden Files" is enabled in the File Manager settings).Rename the file to
.htaccess_old.Refresh your website.
Note: If the site loads correctly after renaming the file, the issue is within the .htaccess file. You can then create a new .htaccess file with standard configurations.
Check for PHP configuration limits
If your website's scripts require more resources than the server allows, the process may be terminated, resulting in a 500 error.
Log in to cPanel.
Locate the Software section and select Select PHP Version.
Click on the Options tab.
Check the following values:
memory_limitmax_execution_timepost_max_size
If your application requires higher limits, increase the values accordingly.
Check for plugin or theme conflicts
If you are using a CMS like WordPress, a faulty plugin or theme can trigger a 500 error.
Log in to your website's administrative dashboard.
If you can access the dashboard, navigate to the Plugins section.
Deactivate all plugins.
Check your website. If the error is gone, reactivate your plugins one by one until the error reappears to identify the faulty plugin.
If you cannot access the dashboard, use the File Manager in cPanel to navigate to
wp-content/plugins.Rename the folder of the suspected plugin (e.g.,
plugin-nametoplugin-name_old) to deactivate it.
Check for file permission issues
Incorrect permissions on folders or files can prevent the server from executing scripts.
Open the File Manager in cPanel.
Navigate to your website's root directory.
Ensure that folders are set to
0755and files are set to0644.You can change these by selecting the item and using the Change Permissions tool.
Contact Hostek support
If you have checked the error logs, verified your .htaccess file, and confirmed your PHP limits are sufficient, but the 500 error persists, the issue may involve a deeper server configuration or a specific module failure.
To help Hostek investigate, please provide:
The specific URL where the error occurs.
A copy of the latest entries from your Errors log in cPanel.
The name of the CMS or application you are running (e.g., WordPress, Magento).
