500 Internal Server Error – how to fix

Updated 1 month ago 121 views

Overview

A 500 Internal Server Error is a general server-side error that means something is wrong with your website, but the server can’t display a more specific message. It is usually caused by a broken configuration, plugin issue, or file error.

Common Causes

  • Corrupted `.htaccess` file
  • Faulty WordPress plugin or theme
  • Incorrect file permissions
  • PHP memory limit issues
  • Broken or missing core files

Step-by-Step Fixes

1. Check your .htaccess file (most common fix)

  1. Log in to DirectAdmin File Manager
  2. Go to `public_html`
  3. Find `.htaccess`

Fix options:

  • Rename it to `.htaccess_old`
  • Then refresh your website

If the site works after this, regenerate the file in WordPress:

  • Go to Settings → Permalinks → Save Changes

2. Disable plugins (WordPress sites)

A bad plugin is a very common cause.

  1. Go to File Manager
  2. Navigate to: `wp-content/plugins`
  3. Rename the folder to: `plugins_disabled`

Check your website again. If it works, a plugin is the cause.

3. Switch to a default theme

  1. Go to: `wp-content/themes`
  2. Rename your active theme folder

WordPress will switch to a default theme automatically.

4. Check file permissions

Incorrect permissions can break your site:

  • Folders: 755
  • Files: 644

You can adjust this in File Manager.

5. Increase PHP memory limit

If your site is overloaded:

  1. Open `wp-config.php`
  2. Add this line:

`define('WP_MEMORY_LIMIT', '256M');`

6. Check error logs

DirectAdmin provides logs that can help identify the exact issue:

  • Look for Error Logs in your control panel
  • This will show the specific cause of the 500 error

Important Notes

  • Always back up your site before making changes
  • The error is usually caused by recent changes (plugin, theme, or file edit)
  • Fixing one issue at a time helps identify the cause

Common Issues & Fixes

Site broke after plugin install

  • Disable the plugin via File Manager

Error after updating theme

  • Switch back to default theme

Still getting 500 error

  • Check error logs or contact support

Need Help?

If your website is still showing a 500 Internal Server Error, our support team can review your logs and fix the issue quickly for you.

Related Guides

Related Hosting Services

Still need help?

If this article did not answer your question, our support team can help.

Contact support