500 Internal Server Error – how to fix
19 views500 Internal Server Error – how to fix
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
.htaccessfile - 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)
- Log in to DirectAdmin File Manager
- Go to
public_html - 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.
- Go to File Manager
- Navigate to:
wp-content/plugins - Rename the folder to:
plugins_disabled
Check your website again. If it works, a plugin is the cause.
3. Switch to a default theme
- Go to:
wp-content/themes - 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:
- Open
wp-config.php - 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.