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.
- In cPanel, go to Metrics > Errors. This shows the latest web server errors for your account, including
.htaccessand permission problems. - Go to Files > File Manager and look for a file named
error_login the folder of the page that fails (for WordPress, usuallypublic_htmlorpublic_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.
- In File Manager, click Settings (top right) and tick Show Hidden Files (dotfiles) so you can see
.htaccess. - In
public_html, right-click.htaccessand rename it to.htaccess.off. - Reload your site. If it loads (even with broken links),
.htaccesswas the problem. - 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_valueorphp_flaglines. 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
.htaccessfile in a subfolder (such aswp-contentorwp-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.phpcan be600or640. - Never use
777or666.
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 message | What 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 exhausted | The script needs more memory. Raise memory_limit (default 128M) in Software > MultiPHP INI Editor. |
Call to undefined function or deprecated features after a PHP change | Your 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 exceeded | A 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
- How to Fix the WordPress White Screen and 500 Errors
- How to Check Your Website Error Log and Recent Visitors
- How to Show Hidden Files (.htaccess) in cPanel File Manager
- File and Folder Permissions Explained (644 and 755)
- Website Infected with Malware? How to Get It Cleaned
Still stuck? Open a support ticket and the Instant Access Internet Services team will help.
