Fix a "500 Internal Server Error"
Updated 27 Nov 2026
A 500 Internal Server Error means the server tried to run your website and something went wrong, but the page doesn't say what. The good news: the real reason is almost always written in a log file. Find it first, then fix it.
It often appears right after you install a plugin, change PHP version, edit .htaccess or upload new files.
Step 1: Read the error
- Open Services, choose your hosting and press Login to cPanel.
- Under Metrics, open Errors. The newest lines are at the top. Look for lines with your site's folder in them.
- Also open Files › File Manager and look for a file called
error_login public_html or in the folder of the broken page. Right-click it and choose View. The last lines are the newest.
Look for words like PHP Fatal error, Allowed memory size exhausted, Invalid command or Permission denied. They point to one of the fixes below.
Step 2: Check .htaccess
A single wrong line in .htaccess breaks the whole site.
- In File Manager, press Settings (top right), tick Show Hidden Files (dotfiles) and press Save.
- In public_html, right-click
.htaccessand Rename it to.htaccess-old. - Reload your site.
If it now works, the problem was in that file. For WordPress, sign in to wp-admin, go to Settings › Permalinks and press Save Changes without changing anything. WordPress writes a fresh, clean .htaccess. Then add back any of your own rules one at a time.
Step 3: Try another PHP version
Old code may not run on a new PHP, and new plugins may need a newer one.
- In cPanel, open Software › MultiPHP Manager (or Select PHP Version).
- Tick your domain, choose a different version and press Apply.
If the error started after a PHP change, switch back. See Change your website's PHP version.
Step 4: Fix file permissions
The server refuses to run files that anyone can change.
| Item | Correct permission |
|---|---|
| Folders | 755 |
| Files | 644 |
wp-config.php |
644, or 600 for extra safety |
In File Manager, right-click a file or folder and choose Change Permissions. Never use 777; on our servers it causes this exact error.
Step 5: Give PHP more memory
If the log says Allowed memory size of … bytes exhausted:
- In cPanel, open Software › MultiPHP INI Editor and choose your domain.
- Set
memory_limitto256Mand press Apply.
Step 6: WordPress plugins or theme
If the log names a file inside wp-content/plugins/ or wp-content/themes/, that plugin or theme is the cause.
- In File Manager, open
wp-content/plugins. - Rename the plugin's folder, for example
contact-form-xtocontact-form-x-off. WordPress turns it off. - Reload the site. If it works, update or replace that plugin.
Can't tell which one? Rename the whole plugins folder to plugins-off, check the site, then rename it back and turn plugins on one at a time in wp-admin › Plugins.
Still stuck? Open a ticket and paste the last few lines of the error log. That saves a lot of back and forth.
Stuck? Open a ticket and choose Technical. Our team can do it for you. Not hosting with us yet? See our cPanel hosting plans.