NetPoa

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

  1. Open Services, choose your hosting and press Login to cPanel.
  2. Under Metrics, open Errors. The newest lines are at the top. Look for lines with your site's folder in them.
  3. Also open Files › File Manager and look for a file called error_log in 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.

  1. In File Manager, press Settings (top right), tick Show Hidden Files (dotfiles) and press Save.
  2. In public_html, right-click .htaccess and Rename it to .htaccess-old.
  3. 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.

  1. In cPanel, open Software › MultiPHP Manager (or Select PHP Version).
  2. 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:

  1. In cPanel, open Software › MultiPHP INI Editor and choose your domain.
  2. Set memory_limit to 256M and 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.

  1. In File Manager, open wp-content/plugins.
  2. Rename the plugin's folder, for example contact-form-x to contact-form-x-off. WordPress turns it off.
  3. 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.

Was this helpful?