What to Do If Your Website Shows a 500 Internal Server Error

A 500 Internal Server Error means the server could not complete the request because something went wrong.

This is a general error message and does not always explain the exact cause.

The issue may be caused by website files, PHP settings, plugins, themes, permissions, or configuration problems.


What Does a 500 Internal Server Error Mean?

A 500 error means the website encountered a problem while trying to load.

It does not always mean the hosting server is down.

In many cases, the problem is related to the website itself.

For example:

  • A PHP error
  • A broken plugin
  • A theme issue
  • An incorrect .htaccess file
  • File permission problems
  • A PHP version conflict
  • A script using too many resources

Common Causes of a 500 Error

Common causes include:

  • Recent website update
  • WordPress plugin update
  • WordPress theme update
  • Incorrect PHP version
  • Corrupt .htaccess file
  • File or folder permission problems
  • Website code errors
  • Memory limit issues
  • Database-related problems
  • Missing website files

Step 1 – Refresh the Website

Sometimes a 500 error may be temporary.

Refresh the page and check again.

If the error continues, continue with the next steps.


Step 2 – Check If the Error Affects the Whole Website

Check different pages on your website.

For example:

https://yourdomain.co.za

https://yourdomain.co.za/contact

https://yourdomain.co.za/wp-admin

Replace yourdomain.co.za with your own domain name.

If only one page is affected, the issue may be related to that specific page.

If the whole website is affected, the issue may be more serious.


Step 3 – Think About Recent Changes

Check whether anything changed recently.

For example:

  • WordPress was updated.
  • A plugin was installed.
  • A plugin was updated.
  • A theme was changed.
  • PHP version was changed.
  • Website files were edited.
  • A developer made changes.
  • A migration was done.

Recent changes are often the cause of a 500 error.


Step 4 – Log Into DirectAdmin

Open your browser and visit: https://cp.yourdomain.co.za (Replace yourdomain.co.za with your own domain name.)

Enter your DirectAdmin username and password.

Click: Log In


Step 5 – Check Error Logs

Once you are logged into DirectAdmin, open the logs area.

Click: System Info & Files

Then click: Site Summary / Statistics / Logs

Click: Error Log

Look for recent errors around the time the 500 error started.


Step 6 – Check the PHP Version

A wrong or unsupported PHP version can cause a 500 error.

If the error started after changing PHP, try switching back to the previous PHP version.

Click: Account Manager

Then click: Domain Setup

Select: Your domain name, example: yourdomain.co.za

Look for the PHP version option and check the selected version.

The exact location may differ depending on the DirectAdmin version and server setup.


Step 7 – Check Website Files

If you recently edited website files, check whether a file was changed incorrectly.

Common files that can cause errors include:

  • .htaccess
  • wp-config.php
  • index.php
  • PHP files
  • Plugin files
  • Theme files

Do not delete important files unless you know what they do.


Step 8 – Check WordPress Plugins or Themes

If your website uses WordPress, a plugin or theme may be causing the error.

If you can still access WordPress admin, disable the plugin or theme that was changed recently.

If you cannot access WordPress admin, you may need to disable the plugin using File Manager.


Step 9 – Restore From Backup If Needed

If the website broke after a recent change and cannot be fixed quickly, you may need to restore from a backup.

Use JetBackup to restore website files or the database from before the issue started.

If your website uses WordPress, you may need to restore both website files and the database from the same date.


Important Notes

Please keep the following in mind:

  • A 500 error is a general server-side error.
  • It does not always mean the hosting server is down.
  • Recent changes are often the cause.
  • Error logs can help identify the issue.
  • Changing PHP version may fix or cause the error.
  • Restoring from backup may overwrite current website data.
  • If unsure, contact HostworX Support before restoring.

When Should I Contact HostworX Support?

Contact HostworX Support if:

  • You cannot find the cause of the error.
  • The error logs are unclear.
  • The website is business-critical.
  • You are unsure whether to restore files or database.
  • The website was recently hacked.
  • The error appeared after server-side changes.
  • You need help checking PHP or permissions.

Please include any error message shown in DirectAdmin or your website error logs.


Conclusion

A 500 Internal Server Error means something went wrong while the website was trying to load.

The cause may be a PHP error, plugin issue, theme problem, .htaccess issue, permission problem, or recent website change.

Checking error logs and recent changes is usually the best place to start.

  • website troubleshooting, 500 error
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Change PHP Version in DirectAdmin

Different websites and applications may require different PHP versions to work correctly. This...

How to Check Disk Usage in DirectAdmin

DirectAdmin allows you to monitor how much disk space your hosting account is using. This guide...

How to Check Which PHP Version Your Website Is Using

Different websites and applications may require different PHP versions....

How to Create a Cron Job in DirectAdmin

Cron Jobs allow your hosting account to run scheduled tasks automatically at specific times or...

How to Create a Custom Error Page in DirectAdmin

Custom error pages allow you to display friendly messages when visitors encounter website errors...