Home › Knowledgebase › KB-1217

How to fix a 500 internal server error on my website

Summary

This guide helps you troubleshoot and resolve: How to fix a 500 internal server error on my website. Follow the steps below to fix the issue.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

Common Causes

Review your server error logs

  1. Log in to your hosting control panel.
  2. Navigate to the Metrics section and select Errors.
  3. Click Error Log to view the most recent server entries.
  4. Look for entries that match the time you encountered the 500 error. Common entries include PHP fatal errors, syntax errors, or permission denied messages.
  5. Note any specific file paths or error codes mentioned, as these will help identify the cause.

Check and rename your .htaccess file

A corrupted .htaccess file is one of the most common causes of a 500 Internal Server Error on Apache servers.

Warning: Before modifying or renaming any files, create a full backup of your website files and database via your hosting control panel.
  1. In your hosting control panel, open File Manager.
  2. Navigate to your website's root directory (commonly public_html or www).
  3. Locate the file named .htaccess. If you do not see it, click Settings in the top-right corner of File Manager and enable Show Hidden Files (dotfiles), then click Save.
  4. Right-click .htaccess and select Rename. Change the name to .htaccess_old.
  5. Refresh your website in a browser to see if the error is resolved.
  6. If the site loads correctly, the .htaccess file was the cause. You can regenerate it by logging into your CMS admin area and saving your permalink settings.

Do not delete your .htaccess file permanently. Always rename it first so you can restore it if needed.

Increase the PHP memory limit

If your website exceeds its allocated PHP memory, the server may return a 500 error.

Warning: Back up your website files and database before editing php.ini or .user.ini files.
  1. In your hosting control panel, open File Manager.
  2. Locate the php.ini file in your website's root directory. If it does not exist, you may need to create one or use a .user.ini file, depending on your host's configuration.
  3. Right-click the file and select Edit.
  4. Look for the memory_limit directive.
  5. Change the value to a higher limit, for example memory_limit = 256M.
  6. Click Save Changes and refresh your website.
  7. If you cannot locate or edit php.ini, check whether your control panel has a Select PHP Version or PHP Options tool where you can adjust memory limits.

Troubleshoot CMS plugins and themes

If you use a content management system such as WordPress, Joomla, or Drupal, a faulty plugin or theme can trigger a 500 error.

Warning: Back up your website files and database before renaming plugin or theme folders.
  1. Access your hosting control panel and open File Manager.
  2. Navigate to your CMS installation directory.
  3. Locate the plugins or extensions folder (for WordPress, this is wp-content/plugins).
  4. Rename the plugins folder to plugins_old to disable all plugins at once.
  5. Refresh your website. If the error disappears, a plugin is the cause.
  6. Rename the folder back to plugins, then rename individual plugin sub-folders one by one to identify the problematic plugin.
  7. If you are using WordPress and can access the admin dashboard, go to Tools > Site Health > Info to check for critical errors, or enable debugging by editing wp-config.php:
  1. Check the wp-content/debug.log file via File Manager for specific PHP errors related to plugins or themes.
  2. If the issue persists, repeat the folder renaming process with your themes folder (for WordPress, wp-content/themes), keeping only a default theme active.

Verify file and folder permissions

Incorrect permissions can prevent the server from reading or executing files, resulting in a 500 error.

Warning: Back up your website files and database before changing file or folder permissions.
  1. In your hosting control panel, open File Manager.
  2. Right-click a file or folder and select Change Permissions.
  3. Standard recommended permissions are:
  1. Apply the permissions and test your website.
  2. Avoid setting folders or files to 777, as this is a security risk and may be blocked by your server for safety reasons.

Restore from backup or escalate to your hosting provider

If the 500 Internal Server Error continues after checking logs, renaming .htaccess, adjusting PHP memory, disabling plugins, and verifying permissions, the issue may be related to server configuration, a corrupted database, or a problem with your hosting account itself. These issues are beyond the scope of customer-level troubleshooting.

If the error started immediately after a CMS, plugin, or theme update, the update may have failed or introduced a compatibility issue. Restore your site from a recent backup via your hosting control panel's Backup or Restore tool if available.

Open a ticket with your hosting provider if:

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?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket