Troubleshooting
Fix HTTP 500 Internal Server Error
Common causes and quick fixes for the 500 error on shared hosting.
4 min read
Common causes
Corrupt .htaccess, exhausted PHP memory limit, faulty plugin or theme, or a syntax error in functions.php.
Fix steps
- Rename .htaccess to .htaccess.bak via cPanel File Manager and reload.
- If the site loads, go to WordPress → Settings → Permalinks → Save to regenerate .htaccess.
- Edit wp-config.php and add: define('WP_MEMORY_LIMIT', '256M');
- Rename /wp-content/plugins to plugins-off — if the site loads, a plugin is the cause.
- Switch to a default theme (Twenty Twenty-Four) to rule out theme conflicts.
- Check cPanel → Errors for the last 300 server errors.