A 500 Internal Server Error is a generic "catch-all" error indicating that the server encountered an unexpected condition that prevented it from fulfilling a request. This error occurs on the website's server and is typically caused by a misconfigured script, a corrupted file, or an exhausted server resource.
Before you begin
You will need:
Access to your website's hosting control panel (such as cPanel or Windows Control Panel).
Access to the website's file manager or an FTP client.
The ability to identify the specific URL where the error occurs.
Check the error logs
Because a 500 Internal Server Error is a general message, the most accurate information regarding the cause is located in the server's error logs.
Log in to your hosting control panel.
Locate the Errors or Logs section.
Find the Apache Error Log or Web Server Error Log.
Search for the most recent entries corresponding to the time you encountered the 500 error.
Identify the specific file path and line number mentioned in the error.
Note: If you are using a CMS like WordPress, the site may also generate a specific debug.log file within the application's directory.
Identify the cause from the logs
Once you have accessed the logs, look for the following common indicators:
File Path Errors: If the log points to a specific plugin or theme folder, that component is likely causing the conflict.
Permission Errors: Look for "Permission denied" or "Could not open" messages. Files should typically have
644permissions and folders should have755permissions.Memory Limit Errors: Look for "Allowed memory size exhausted" or "Memory limit exceeded."
Timeout Errors: Look for "Maximum execution time exceeded" or "Timeout" messages.
Common fixes based on log results
Depending on what you find in the logs, perform the following actions:
If a plugin or theme is identified
Access your site's files via a File Manager or FTP.
Navigate to the directory for the specific plugin or theme.
Rename the folder (e.g., change
plugin-nametoplugin-name_old). This will force the system to deactivate the component.Refresh your website to see if the 500 error is resolved.
If a permission error is identified
Navigate to the directory of the file or folder mentioned in the error log.
Update the permissions to the standard values (e.g.,
755for folders and644for files).Refresh the page.
If a resource limit is exceeded
Log in to your control panel.
Locate the Select PHP Version or PHP Selector tool.
Select Edit or Select PHP Settings.
Increase the
memory_limitormax_execution_timeto a higher value.Save the changes.
Confirm the result
The website loads successfully at the URL where the 500 error was previously visible.
The error logs no longer show new 500-related entries for that specific page.
If the error persists after checking logs
If the error remains and the logs do not provide a clear path to a solution, the issue may involve a server-level configuration or a complex script conflict.
Collect the following information:
The specific URL where the error occurs.
A copy of the latest entries from your server's error logs.
A description of any recent changes (e.g., installing a new plugin, updating a theme, or changing a configuration file).
Contact Hostek support with these details so we can investigate the server environment.
