1. Websta Hosting
Troubleshooting & Common Errors

500 Internal Server Error — Causes and Fixes

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:

  1. Via FTP or File Manager, rename .htaccess to .htaccess.bak.
  2. If the site loads, regenerate .htaccess (WordPress: Settings → Permalinks → Save).
  3. If the site still errors, check the new .htaccess for syntax issues.

2. PHP Memory Exhausted

Fix: Add to .user.ini:

memory_limit = 256M

3. Plugin or Theme Conflict (WordPress)

Fix:

  1. Rename wp-content/plugins/ to plugins.bak/ via FTP.
  2. If site loads, rename back and deactivate plugins one by one.
  3. 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
Still need help?

If this article didn't answer your question, our support team can help.

Contact support
All articles More in Troubleshooting & Common Errors