500 Internal Server Error — Causes and Fixes

A 500 Internal Server Error is a generic message that means your web server encountered a problem but cannot tell you exactly what it is. Here is how to diagnose and fix it.

Step 1: Check the Error Log

  1. Log in to cPanel.
  2. Click Error Logs in the Metrics section.
  3. Look for the most recent errors — they will tell you exactly which file caused the problem.

Fix 1: Broken .htaccess File

A syntax error in .htaccess causes 500 errors immediately.

  1. In cPanel File Manager, navigate to public_html.
  2. Rename .htaccess to .htaccess_backup.
  3. Reload your website. If the 500 error is gone, the .htaccess file was the cause.
  4. If you are using WordPress, go to your WordPress admin > Settings > Permalinks and click Save Changes to regenerate a clean .htaccess.

Fix 2: PHP Memory Limit

  1. In cPanel File Manager, open (or create) a php.ini file in public_html.
  2. Add: memory_limit = 256M
  3. Save and reload.

Fix 3: File or Directory Permissions

Incorrect file permissions cause 500 errors. Correct permissions are:

  • Files: 644
  • Directories: 755

In cPanel File Manager, right-click a file or folder and click Change Permissions to fix this. Contact support if you need to fix permissions for multiple files at once.

Fix 4: Plugin or Theme Error (WordPress)

If the 500 error appeared after installing or updating a plugin or theme, disable it via File Manager (rename the plugin folder in wp-content/plugins/) or via the WordPress admin if accessible.

Fix 5: PHP Version Incompatibility

If you recently changed your PHP version, try switching back. Go to cPanel > Select PHP Version.

Note: If you have tried all of the above and the error persists, open a support ticket. Include your domain name and the error log content so we can investigate.

  • internal server error, PHP error, 500 error, .htaccess, server error
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

My Website is Down — First Steps to Diagnose

If your website is not loading, here is a quick checklist to diagnose the problem before...

Accepted Payment Methods at Hordanso

Here is a complete list of all the payment methods Hordanso accepts, for both Nigerian and...

ERR_TOO_MANY_REDIRECTS — How to Fix

The ERR_TOO_MANY_REDIRECTS error means your website is redirecting back and forth between URLs...

Email Not Receiving — Troubleshooting Guide

If emails sent to your domain are bouncing or not arriving, here is a structured guide to...

My SSL Certificate Shows 'Not Secure'

If your browser shows a 'Not Secure' warning or a broken padlock even after installing SSL, here...

Powered by WHMCompleteSolution