Fixing 500 Internal Server Error
Step-by-step guide to diagnosing and fixing 500 Internal Server Errors on your website.
Resolving 500 Internal Server Errors
The 500 Internal Server Error is a generic error message. This guide will help you identify and fix the most common causes.
What is a 500 Error?
A 500 Internal Server Error means something went wrong on the server, but the server couldn't identify the specific problem.
Common Symptoms:
- White page with "500 Internal Server Error"
- Site partially loads then shows error
- Error appears on all pages or specific pages
- Admin area inaccessible
Common Causes & Solutions
1. Corrupted .htaccess File
This is the most common cause!
Solution:
- Log in to cPanel → File Manager
- Navigate to public_html
- Find .htaccess file (enable "Show Hidden Files" in Settings)
- Right-click .htaccess → Rename to .htaccess.bak
- Try loading your site
- If it works, generate new .htaccess in WordPress: Settings → Permalinks → Save
If you can't find .htaccess:
- Click Settings (gear icon in File Manager)
- Check "Show Hidden Files (dotfiles)"
- Click "Save"
2. PHP Memory Limit
Your site may be running out of memory.
Solution - Edit wp-config.php (WordPress):
- Open wp-config.php in File Manager
- Add before "That's all, stop editing!":
define('WP_MEMORY_LIMIT', '256M');
Solution - PHP.ini:
- Go to cPanel → MultiPHP INI Editor
- Select your domain
- Find memory_limit
- Change to 256M or higher
- Click "Apply"
3. PHP Version Compatibility
Your PHP version may be incompatible with your site.
Solution:
- Go to cPanel → MultiPHP Manager
- Select your domain
- Try changing PHP version (recommended: 7.4 or 8.0)
- Click "Apply"
- Test your site
4. Plugin or Theme Conflict (WordPress)
A faulty plugin or theme may be causing the error.
Solution - Disable All Plugins:
- File Manager → public_html → wp-content
- Rename "plugins" folder to "plugins.bak"
- Check if site loads
- If yes, rename back to "plugins"
- Rename each plugin folder individually to find culprit
Solution - Switch Theme:
- File Manager → wp-content → themes
- Rename your active theme folder
- WordPress will default to a default theme
- If site loads, your theme was the problem
5. File Permissions
Incorrect file permissions can cause 500 errors.
Correct Permissions:
- Folders: 755
- Files: 644
- wp-config.php: 600 or 644
Fix Permissions:
- Select all files in public_html
- Right-click → Change Permissions
- Check "Recurse into subdirectories"
- Apply appropriate permissions
6. Syntax Errors in PHP Files
A syntax error in PHP code can cause 500 errors.
Solution:
- Check error logs in cPanel → Errors
- Look for the file causing the error
- Edit the file and fix syntax error
- Or restore from backup if recent change
7. Exhausted PHP Processes
Too many concurrent PHP processes.
Solution:
- Wait a few minutes and try again
- Check for running cron jobs
- Optimize database queries
- Enable caching
- Upgrade to higher plan if needed
Checking Error Logs
Method 1: cPanel Error Log
- Go to cPanel → Metrics → Errors
- Select your domain
- View recent errors
- Look for clues about the cause
Method 2: File Manager
- Go to File Manager
- Navigate to public_html/error_log
- View the file
- Look for recent errors
Enable WordPress Debug:
- Edit wp-config.php
- Find:
define('WP_DEBUG', false); - Change to:
define('WP_DEBUG', true); - Add:
define('WP_DEBUG_LOG', true); - Errors will be logged to wp-content/debug.log
Step-by-Step Troubleshooting
- Rename .htaccess file (fixes 90% of cases)
- Check error logs for specific error messages
- Disable plugins (WordPress)
- Switch to default theme (WordPress)
- Increase PHP memory limit
- Change PHP version
- Check file permissions
- Restore from backup (if recent change)
- Contact support if still not resolved
Prevention Tips
- Keep WordPress, plugins, and themes updated
- Test updates on staging site first
- Use reputable plugins and themes
- Regular backups before making changes
- Monitor site after updates
- Use error monitoring tools
- Keep PHP version current
When to Contact Support
Contact our support team if:
- None of the above solutions work
- Error logs show server-side issues
- Error appeared suddenly without changes
- Multiple sites affected
- Site was working, then stopped after server maintenance
Provide support with:
- URL showing the error
- Error log entries
- Steps you've already tried
- Recent changes made to site
- When the error started