500 Internal Server Error: What It Means and How to Fix It

A 500 Internal Server Error means the web server hit a problem it couldn't recover from while building the page, so it gave up. The error is generic on purpose -- the real reason is written in a log. On our hosting almost every 500 error comes from one of three things: a mistake in an .htaccess file, wrong file or folder permissions, or a PHP error. This guide shows how to find which one and fix it.

What the 500 error looks like

  • A page titled 500 Internal Server Error, sometimes with "The server encountered an internal error or misconfiguration and was unable to complete your request."
  • Chrome and Edge: "This page isn't working. example.com is currently unable to handle this request. HTTP ERROR 500".
  • Firefox and Safari may show a blank white page instead of an error.
  • WordPress: "There has been a critical error on this website", or a blank white page.

If the error affects only one page or started right after a change, that change is almost certainly the cause.

Step 1: Read the error log

Don't guess -- the log usually names the file and line at fault.

  1. In cPanel, go to Metrics > Errors. This shows the latest web server errors for your account, including .htaccess and permission problems.
  2. Go to Files > File Manager and look for a file named error_log in the folder of the page that fails (for WordPress, usually public_html or public_html/wp-admin). Open it and scroll to the bottom for the newest lines.

Then match what you find to one of the sections below.

Cause 1: A mistake in .htaccess

The .htaccess file controls redirects, rewrites and other settings. One typo, an unsupported command, or a leftover line from another host can cause a 500 error on every page. Signs: the error appeared right after you edited .htaccess or installed a plugin that writes to it, and there's nothing in the PHP error_log.

  1. In File Manager, click Settings (top right) and tick Show Hidden Files (dotfiles) so you can see .htaccess.
  2. In public_html, right-click .htaccess and rename it to .htaccess.off.
  3. Reload your site. If it loads (even with broken links), .htaccess was the problem.
  4. Rename it back and fix the lines you last changed, or remove them. For WordPress you can instead leave the old file renamed, log in, go to Settings > Permalinks and click Save Changes to create a fresh, clean one.

Common .htaccess mistakes that cause a 500:

  • php_value or php_flag lines. Remove them and set PHP values in Software > MultiPHP INI Editor instead.
  • Commands that only work in the main server configuration, or misspelled directive names.
  • A block opened with <IfModule ...> but never closed with </IfModule>.
  • Rules copied from another host that point to paths that don't exist here.
  • An .htaccess file in a subfolder (such as wp-content or wp-admin) -- check those too if the root file isn't the problem.

Cause 2: Wrong file or folder permissions

PHP on Instant Access Internet Services servers runs as your own cPanel user. Files and folders that are writable by everyone are treated as a security risk and refused with a 500 error. Signs: the error log mentions "permission", "writable by group" or "writeable by others", often after uploading files or running a "fix permissions" tool that set 777.

  • Files should be 644. Folders should be 755. wp-config.php can be 600 or 640.
  • Never use 777 or 666.

In File Manager, select the file or folder, click Permissions, set the correct value and click Change Permissions. For many files at once, see the permissions guide below.

Cause 3: A PHP error

If error_log contains a line beginning with PHP Fatal error or PHP Parse error, a script crashed.

Log messageWhat to do
PHP Parse error: syntax error, unexpected ...A typo in a file you (or a plugin) just edited. The log gives the file and line number. Undo the edit or restore the file from JetBackup 5.
Allowed memory size of ... bytes exhaustedThe script needs more memory. Raise memory_limit (default 128M) in Software > MultiPHP INI Editor.
Call to undefined function or deprecated features after a PHP changeYour code doesn't support the selected PHP version. Update the plugin, theme or script, or switch back in Software > MultiPHP Manager.
Maximum execution time of ... seconds exceededA script ran too long. See the maximum execution time guide below.
A path under wp-content/plugins/ or wp-content/themes/That WordPress plugin or theme is the cause. Follow the WordPress 500 error guide below to disable it.

WordPress may also email the site admin a notice titled "Your Site is Experiencing a Technical Issue" naming the plugin or theme that failed. Use that name to know where to look, then fix it with the steps in the WordPress guide.

Still getting a 500?

  • Check Metrics > Resource Usage. If your account hit its memory or process limits, some requests may fail with 500 or 503 errors instead of the usual 508.
  • If a recent change broke the site and you can't find it, restore the affected files (and database, if needed) from Files > JetBackup 5.
  • If your site shows signs of being hacked (strange files, code you didn't add), see the hacked website guide below.

When to open a ticket

Open a ticket if the log is empty, the error affects cPanel or webmail, or nothing above helps. Include the full URL, the time the error happened, the last lines of error_log, and what changed just before it started.

Related guides

Still stuck? Open a support ticket and the Instant Access Internet Services team will help.

Ultrafast LiteSpeed hosting from InstantAccess.net: free SSL, free backups, cPanel included, no contracts. Check out our $10/month hosting.
  • 500 internal server error, http error 500, 500 error htaccess, internal server error fix, this page isn't working http error 500, 500 error cpanel
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

429 Too Many Requests: What It Means and How to Fix It

A 429 Too Many Requests error means something decided that one visitor, program or website sent...

400 Bad Request Error: What It Means and How to Fix It

A 400 Bad Request error means the server received a request it couldn't understand, so it refused...

401 Unauthorized Error: What It Means and How to Fix It

A 401 Unauthorized error means the page you asked for needs a login, and the server didn't...

403 Forbidden Error: What It Means and How to Fix It

A 403 Forbidden error means the server understood the request but refused to show the page....

404 Not Found Error: What It Means and How to Fix It

A 404 Not Found error means the server is working, but there's nothing at the address that was...