500 Internal Server Error — Causes and Fixes
A 500 Internal Server Error means the server encountered an unexpected condition. It's one of the most common hosting errors.
Common Causes
1. Corrupted .htaccess File
This is the #1 cause on Apache servers.
Fix:
- Via FTP or File Manager, rename
.htaccessto.htaccess.bak. - If the site loads, regenerate
.htaccess(WordPress: Settings → Permalinks → Save). - If the site still errors, check the new
.htaccessfor syntax issues.
2. PHP Memory Exhausted
Fix: Add to .user.ini:
memory_limit = 256M
3. Plugin or Theme Conflict (WordPress)
Fix:
- Rename
wp-content/plugins/toplugins.bak/via FTP. - If site loads, rename back and deactivate plugins one by one.
- Switch to a default theme (Twenty Twenty-Four) to rule out theme issues.
4. Wrong File Permissions
Fix:
find ~/public_html -type d -exec chmod 755 {} \;
find ~/public_html -type f -exec chmod 644 {} \;
5. PHP Syntax Error
Fix: Enable error logging and check ~/logs/php_errors.log:
log_errors = On
error_log = /home/yourusername/logs/php_errors.log
6. Disk Space Full
Fix: Check usage in DirectAdmin. Delete old backups, logs, and unused files.
Still Getting 500 Errors?
Contact our support team with:
- The exact URL
- The time the error occurred
- Any recent changes you made