Mubasher

Mubasher / CLIENT ACCESS

Your client area is next.

Contact Mubasher

No login details are collected on this trial.

What are you looking for?

Search services, hosting guides and company news.

← Blog & News

Technology ·

HTTP 500 Internal Server Error: common causes and fixes

A 500 error says the server failed but not why. The real reason is in the error log, and it is often a bad .htaccess rule or a PHP problem.

Cover illustration: HTTP 500 Internal Server Error: common causes and fixes

HTTP 500 Internal Server Error is a general message: something went wrong on the server and it could not be more specific. The detail is in the server error log, so start there.

Where to look

Open the error log for the domain in your hosting panel and read the newest lines at the time of the error. It normally names a file and a line number.

Frequent causes

  • A broken .htaccess file. A typing mistake, a rule copied from a different server type or a redirect loop can stop the site. Rename .htaccess to test. If the site works, fix or rebuild the rules.
  • PHP errors. A plugin, theme or custom script with a fatal error, or code that does not support your PHP version.
  • PHP memory or execution limits that are too low for the task.
  • Wrong file permissions. A common safe setup is 755 for folders and 644 for files, and owned by the account user.
  • A module or setting that the server does not provide.

A safe order of work

  1. Take a backup.
  2. Rename .htaccess and reload the page.
  3. Switch to the PHP version that worked before.
  4. Disable plugins or custom code added recently.
  5. Check permissions and ownership.
  6. Raise the memory limit if the log mentions it.

For visitors

If you are only a visitor, the problem is not on your side. Wait a few minutes and try again, or contact the site owner.

Common questions

Is a 500 error always a server problem?

The server reports it, but the cause is often in the application: a bad rule in .htaccess, a PHP error, a permission problem or an exhausted memory limit. The server error log usually names the cause.

What does a wrong .htaccess do?

A syntax error or a rule that loops can make every page fail at once. Rename the file to test, then restore it and fix the rule you added most recently.

Can wrong file permissions cause it?

Yes. Files and folders that are too open or too closed can be blocked by the server. Use the permissions recommended for your application, not a blanket change.

What should visitors see meanwhile?

A simple message that you are aware and working on it is better than a blank error page. A short maintenance page helps while you fix it.

When to ask for help and what to send

If the error log does not point to a clear cause, send support the time of the first failure, the last change you made, the affected URLs and the text of any error. Support can read the server logs at the same time and match them to your timeline.

A realistic example

After a plugin update, every page returns error 500. The error log shows a PHP memory limit message from that plugin. Rolling the plugin back restores the site, and the owner raises the memory limit before trying the update again. The log held the answer the whole time.

Mistakes to avoid

  • Editing files without a backup.
  • Ignoring the error log.
  • Updating many plugins at once.

Quick checklist

  • Read the server error log first.
  • Rename .htaccess to test it.
  • Check PHP version, memory limit and recent changes.
  • Check file and folder permissions.
  • Roll back the last change if the cause is not clear.