Knowledge is power!
Understanding and Fixing the 500 Internal Server Error

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
knowledgebase
Filter by Categories
  • How to Create Support Tickets

  • How Long does it take to set up my Account?

  • Why Choose Astrihost

  • What is a Domain name?

  • How Can I Transfer My Domain to AstriHost?

  • Domain Registration with Astrihost

  • Changing the nameservers of your domain.

  • Add DNS Records with Zone Editor?

  • How to redirect a Domain in cPanel?

  • Updating your domain contact information – WHOIS.

  • How to Migrate my WordPress Site

  • How to Debug Your WordPress Site with cPanel’s WordPress Toolkit

  • How to Log in to Your WordPress Dashboard

  • How to Edit My WordPress Website in cPanel with WP Toolkit

  • Install a Theme for WordPress

  • Install a WordPress Plugin

  • “Site Quality Monitoring”, for keeping tabs on your website.

  • How to Install WordPress with Softaculous?

  • How to install WordPress via cPanel?

  • How to Boost Your Hosting Performance

  • 504 Error Server is Unavailable

  • Managing Website RAM and Physical Memory Usage

  • How to Login to your cPanel

  • How to protect your website’s images?

  • How to delete a database in cPanel?

  • How to create a database in cPanel?

  • How to Create Additional FTP Accounts?

  • How to restore a backup of your files?

  • Does Astrihost support multiple PHP versions?

The “500 Internal Server Error” is a common HTTP status code indicating a problem on the server. This issue can stem from resource limitations, application errors, or server-side code problems. To resolve this, the website administrator should check server logs for errors and troubleshoot the problem.

Causes and Solutions for the 500 Internal Server Error

  1. Corrupt .htaccess File

A .htaccess file can become corrupted during server work or plugin installations due to incorrect syntax or directives, leading to a 500 error.

To resolve this:

  • Locate your .htaccess file using the file manager in cPanel or via FTP/SFTP. It’s in your public_html directory and might be hidden by default.
  • Rename the .htaccess file. If this resolves the issue, .htaccess was the problem.
  • If not, check the error_log file for further troubleshooting.
  • Remember to rename the file back and uncomment lines after resolving the issue.

Note: If you’re unfamiliar with .htaccess syntax, avoid making changes yourself. Always back up your account before making any changes.

  1. Incorrect Permissions

Permission errors prevent users from performing actions and scripts from running, often due to bugs, user mistakes, or networking problems.

To resolve this:

  • Ensure permissions are set correctly on your server:
    • Files: 0644
    • Folders: 0755
    • public_html: 0750
  1. Reaching LVE Limits

A 500 error can occur if your hosting account exceeds its resource limits. Check the Resource usage page in cPanel.

To resolve this:

  • Check the error_log file to identify which script or plugin is causing the issue.
  • Optimize your site performance to stay within your account resource limits.
  1. PHP Memory Limit Exceeded

PHP, a server-side scripting language, manages content, databases, and sessions. Each process has a memory limit, and exceeding it can cause a 500 error.

To resolve this:

  • Increase the PHP Memory limit for your hosting account. Follow the steps provided in the hosting documentation to set your PHP values.
  1. Faulty Plugins/Themes

Incompatible or poorly coded plugins/themes can cause 500 errors. This often happens after installing new or outdated plugins/themes.

To resolve this:

  • Deactivate all plugins/themes to see if the error goes away.
  • If it does, reactivate each plugin/theme one by one to find the culprit.
  • For WordPress sites, re-upload core files if needed.

If you cannot resolve the issue after trying these solutions, contact your hosting provider for further assistance. They can help diagnose and fix the problem.