500 Internal Server Error

500, internal server error, htaccess, php, error log, permissions · 0 found this helpful

A 500 error means the server tried to run your site and something broke. It's a general error. The log nearly always says exactly what.

Symptom, cause, fix

What you see Likely cause Fix
"500 Internal Server Error" after you edited .htaccess Typo or unsupported rule in .htaccess Section 1
500 after updating a plugin or theme PHP error in new code Section 2
500 after changing PHP version Code isn't compatible, or an extension is missing Section 3
500 on a script or folder you uploaded Wrong permissions or ownership Section 4
500 under heavy use, then fine Memory or process limit Section 5
White page, no message PHP error with display off Fix the WordPress white screen
500 on one page only A plugin, shortcode, or custom code on that page Section 2

Step 0: Read the log

The error log names the file and line. See Read your site's error log. A typical line:

[Mon Nov 30 10:12:04.512 2026] [core:alert] [pid 4532] [client 203.0.113.25]
/home/nsbakery/public_html/.htaccess: Invalid command 'RewriteRulez',
perhaps misspelled or defined by a module not included in the server configuration
Part Meaning
core:alert Severity and source
client 203.0.113.25 Visitor's address
/home/nsbakery/public_html/.htaccess The file with the problem
Invalid command 'RewriteRulez' What's wrong. A misspelled rule

On our LiteSpeed servers each line starts differently, with the date first, for example 2026-11-30 10:12:04.512 [ERROR] [12345] [T0] [203.0.113.25:51234#APVH_example.ca:443]. The file path and the message after the brackets read the same way. Another example, from PHP:

PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen()
in /home/nsbakery/public_html/wp-content/plugins/menu-pro/menu.php:41

This one means a PHP extension (mbstring) isn't on. See Section 3.

1. Test .htaccess

  1. Open Account → Hosting → your site → Files → File manager. Hidden files such as .htaccess show automatically.
  2. Right-click .htaccess in your site folder and choose Rename. Call it .htaccess-off.
  3. Reload your site.

If it loads, .htaccess was the cause. Put the file back, then remove your last edit. For WordPress, you can get a clean default file by going to Settings → Permalinks and clicking Save Changes. See .htaccess basics with examples.

2. Test plugins and themes

  1. In the file manager, open wp-content. Rename plugins to plugins-off. Reload the site.
  2. If it loads, rename it back and rename plugin folders one at a time to find the culprit. See Find a plugin causing problems.
  3. Still failing? Rename your active theme's folder in wp-content/themes. WordPress falls back to a default theme if one exists.

3. Check the PHP version and extensions

  1. Go to Account → Hosting → your site → Performance → Choose PHP for each site.
  2. On your site's card, switch PHP version to the version your site ran on before, and click Save. See Change PHP version and extensions.
  3. Turn on any extension named in the log.

4. Check permissions

Files should be 644 and folders 755. See Fix file and folder permissions. A script set to 777 is blocked for safety and returns a 500.

5. Check memory and limits

  1. Check Account → Hosting → your site → Performance → Resource usage for faults at the time of the error. See Read your Resource Usage page.
  2. For WordPress, raise the memory limit. See Raise the WordPress memory limit.

6. Turn on WordPress debug logging

See Turn on WordPress debug logging. It writes the exact PHP error to a file.

If nothing works

Restore from a backup from before it broke. See How backups work at Barbrick. Or contact us with the log lines. See What to include when you ask for help.

Was this helpful?

Still stuck? Ask us and we'll walk you through it.