Website showing 500 internal server error how to fix
Summary
This guide helps you troubleshoot and resolve: Website showing 500 internal server error how to fix. Follow the steps below to fix the issue.
Common Causes
A 500 Internal Server Error is a generic response from your web server indicating that something went wrong, but the server cannot specify exactly what the problem is. Because this error originates on the server side rather than your local computer or internet connection, refreshing the page will not usually resolve it. This guide explains the most common causes and how you can isolate the issue to get your website back online.
Remember — If you host with us, you don't need to do this yourself — just Open a Ticket and our Brisbane team will get it sorted.
Quick Fix Steps
- Wait a few minutes and refresh your browser to see if the error clears.
- Clear your browser cache or try viewing the site in an incognito or private window.
- Check if the error affects the entire website or only specific pages, such as the checkout or admin dashboard.
- If you recently installed a plugin, theme, or update, that is the most likely cause.
Detailed Instructions
1. Review your server error logs
Most hosting control panels provide access to error logs that record the exact cause of a 500 error. Look for entries that occurred at the time the error started.
- Log in to your website hosting control panel.
- Open the Metrics or Logs section.
- Select Errors or Error Log.
- Review the most recent entries for file paths, PHP errors, or database connection failures.
2. Rename the .htaccess file
A corrupted .htaccess file is one of the most common causes of a 500 error, especially after a plugin update or site migration.
- Connect to your hosting account using FTP or the File Manager in your control panel.
- Navigate to the root folder of your website, usually
public_htmlorwww. - Locate the file named
.htaccess. - Rename it to
.htaccess_old. - Refresh your website in a browser.
If the site loads, the .htaccess file was the cause. You can regenerate a default file by visiting your site's permalink settings in your content management system.
Do not delete the .htaccess file permanently. Rename it first so you can restore it if needed.
3. Increase the PHP memory limit
If your website exceeds its allocated PHP memory, the server may return a 500 error. This often happens during large imports, backups, or after adding new functionality.
- Access your site files via FTP or File Manager.
- Locate the
wp-config.phpfile if you use WordPress, or thephp.inifile for other platforms. - Add or edit the following line for WordPress:
define('WP_MEMORY_LIMIT', '256M'); - Save the file and refresh your website.
4. Deactivate recently installed plugins or themes
Incompatible plugins or themes frequently trigger 500 errors after an automated update.
- Connect via FTP or File Manager.
- Navigate to your content folder, for example
wp-content/plugins. - Rename the folder of the plugin you suspect to
pluginname_old. - Refresh your website.
- If the error persists, rename the folder back and try the next plugin.
- To test your theme, rename the active theme folder in
wp-content/themesto force the system to use a default theme.
5. Check file and folder permissions
Incorrect permissions can prevent the server from reading or executing scripts.
- Open File Manager or your FTP client.
- Right-click a folder and select File Permissions or Change Permissions.
- Set folders to
755. - Set files to
644. - Apply the changes and test the website.
Avoid setting permissions to 777, as this creates a security risk on shared hosting environments.
Troubleshooting
Database connection issues
A 500 error can occur if your website cannot connect to its database. This is common after a password change or database server outage.
- Verify your database credentials in your site configuration file.
- Check that the database server is running through your hosting control panel.
- Look for database connection errors in your server error log.
PHP version mismatches
Running an outdated or incompatible PHP version can cause scripts to fail after a plugin or theme update.
- Log in to your hosting control panel.
- Open PHP Version or Select PHP Version.
- Ensure the version matches the requirements of your website software.
- If you recently changed the PHP version, try switching back to the previous version to test.
When to escalate
If none of the steps above resolve the issue, the problem may be related to server configuration, a corrupted core file, or a hosting environment fault. In these cases, gather the following information before contacting support:
- The exact time the error first appeared.
- Any recent changes, such as updates, plugin installations, or file edits.
- Relevant entries from your server error log.
- Whether the error affects the whole site or only specific pages.
Remember — If you host with us, you don't need to do this yourself — just Open a Ticket and our Brisbane team will get it sorted.
Still Having Issues?
💻 Open a Ticket