French flag Hosted and supported in France A human reply within 12 hours 06 65 13 24 36
← All articles WordPress & security8 min read

WordPress 500 error: causes and solutions

Trace an HTTP 500 error on WordPress back to its cause by checking PHP, .htaccess, the plugins, memory and permissions.

Trace an HTTP 500 error on WordPress back to its cause by checking PHP, .htaccess, the plugins, the memory and the permissions. The priority is to restore a situation under control without wiping the traces useful to the diagnosis.

Illustrated diagnosis: WordPress 500 error
Diagnosing a WordPress 500 error: symptoms, causes, fixes and checks.

How do I recognise a WordPress 500 error?

On WordPress, a visible outage can come from the core, the theme, a plugin, PHP, the database or the server. A reliable fix isolates one variable at a time and always keeps the option of going back. Start by noting when it appeared, the most recent changes, the URLs concerned and the behaviour observed.

Note the page's HTTP status, test in a private window, and read the PHP error log along with debug.log if WordPress debugging is enabled. Note too whether the admin is still reachable: the answer points straight at the theme, a plugin or the server environment.

01 · Signal to check

An HTTP 500 response

02 · Signal to check

A blank page or an Internal Server Error message

03 · Signal to check

An error limited to wp-admin or to one URL

One signal alone does not prove the cause: “An HTTP 500 response” can come from “An invalid directive in the .htaccess file” just as easily as from “A fatal PHP error hidden in production”. Look for at least two findings that agree before you apply a lasting fix.

A 500 error is a server symptom, not a diagnosis

The HTTP 500 code only means the server could not finish the request. The message shown in the browser almost never carries the cause: that is in the Apache or Nginx error log and in the PHP log, at the exact timestamp of the request that failed.

The most telling lines are “Invalid command” or “RewriteRule: bad flag” for an invalid .htaccess file, “PHP Fatal error” for incompatible code, “Premature end of script headers”, or exceeding max_execution_time for a script that runs too long, and “Permission denied” for incorrect file permissions.

Testing .htaccess and the PHP resources methodically

Rename .htaccess to .htaccess-old, then reload the page. If the site answers, regenerate a clean file by saving the permalink settings, then reintroduce the rules your caching or security plugins added, one at a time. A single directive the server does not support is enough to throw a 500 across the whole site.

If the error only shows on certain heavy actions — an import, generating a PDF, a backup — weigh memory_limit, max_execution_time and WP_MEMORY_LIMIT against what the job needs. The expected permissions are generally 755 for folders and 644 for files, with wp-config.php tighter still where the hosting allows it.

Causes to check

For a WordPress 500 error, the 4 causes below are ranked from the commonest to the rarest. Test the one matching the site’s most recent change first, one at a time.

01 · Possible cause

An invalid directive in the .htaccess file

02 · Possible cause

A fatal PHP error hidden in production

03 · Possible cause

A memory or time limit exceeded

04 · Possible cause

Incorrect file permissions or ownership

The recovery email WordPress sends, the Site Health report, the update history and the PHP logs often name the file and the line at fault. Start from that evidence rather than disabling plugins at random.

A good fix does not merely make the symptom disappear. It explains why the problem appeared and how to check that it does not come back.
An animated process to understand WordPress 500 error
The subject in motion: observe the facts, apply an action in proportion, then check the result.

Precautions before starting

Make a full backup of the files and the database, even if an automatic backup already exists, and write down the versions of WordPress, the theme, the plugins and PHP. Keep that copy off the server in question, and check it opens.

If the site is still taking form submissions or orders, plan a short maintenance window so nothing is written while you work.

Free Host by French tool

Quick diagnosis: what is the likely cause?

Answer these questions to aim your search before diving into the server logs.

Did the 500 error appear right after a specific action?
Does the error affect the whole site or only certain pages?
Do you have access to the server's PHP error logs?

Want a human opinion on your exact situation?

Get a recommendation
ORDER OF WORK

Diagnosis and fix

PhaseObjectiveA mistake to avoid
ObserveReproduce it and gather the evidenceChanging several settings before you have a baseline
IsolateConfirm the component or the rule responsibleDeleting files without keeping a copy
FixApply the smallest documented changeRestoring a version that still contains the same cause
ValidateTest the whole journey and monitor itConcluding from the home page loading alone

How do I resolve a WordPress 500 error step by step?

The 4 steps below tackle a WordPress 500 error from the least intrusive to the heaviest. After each change, repeat the same test; if nothing changes, go back to the previous state before moving on to the next step.

  1. 01

    Step 1

    Note the exact time and URL, then read the server and PHP logs.

  2. 02

    Step 2

    Rename .htaccess temporarily and test a minimal version.

  3. 03

    Step 3

    Disable plugins and the theme in groups to isolate the conflict.

  4. 04

    Step 4

    Fix the cause, regenerate the permalinks and restore the expected permissions.

check that every old URL answers with a 200 or redirects correctly.

Validate the resolution

Walk through the journey that was failing, then check the admin, the editor, the media library, the forms and user login. Clear the caches (plugin, server and CDN) before you conclude, or an old version can hide the result.

Validation checks

Watch the PHP log for a few days: some errors only surface when a scheduled task (WP-Cron) or a nightly backup runs.

Prevent a recurrence

Prevention has to answer the cause you identified. For a WordPress 500 error, the first measure is “Validate .htaccess before deploying”; note too the signal that would have shown the incident sooner, and who is responsible for watching for it.

01 · Preventive measure

Validate .htaccess before deploying

02 · Preventive measure

Centralise the PHP logs

03 · Preventive measure

Monitor memory

04 · Preventive measure

Apply consistent permissions

Apply updates on a staging copy, or failing that after a verified backup, one plugin at a time. Checking the key pages after each update catches most regressions before visitors do.

A practical diagram about WordPress 500 error
A marker specific to this article: three steps to turn reading into a decision you can verify.
FREQUENTLY ASKED QUESTIONS

Frequently asked questions about a WordPress 500 error

Where do you find the server error log?

It is usually reachable from the hosting panel (cPanel's Errors or Logs section, for instance) or in a logs folder on the account. Look for the exact timestamp of the request that failed to read the matching line.

Can renaming .htaccess break the site?

Permalinks may return 404s for a while, but the site itself is not damaged. Saving the permalink settings again recreates a default file. Keep the old file so you can put the useful rules back.

Why does the 500 error only appear at certain times?

An intermittent error often points to a resource limit reached during traffic peaks, or during a heavy scheduled task such as a backup or an import. Line the error times up with the cron jobs and the traffic peaks.

How do you check the fix will hold?

Check that every old URL returns 200 or redirects properly. Test the admin, the media library and the forms. Watch for 500 errors during traffic peaks. Then watch the logs, the alerts and the relevant metrics for several days.

ON TO YOUR OWN CASE

How to resolve it

If a WordPress 500 error persists after these steps, we can pick the diagnosis up again from your logs and your access details, without acting blind on the site.

Get a diagnosis

Summary with an AI

Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

ChatGPTSummarise the article PerplexitySummarise the article ClaudeSummarise the article CopilotSummarise the article MistralSummarise the article GeminiSummarise the article
THEY TRUSTED US

Client references

See all case studies
Montreuil-sur-Mer logo Data Labcenter logo Sofradom logo 70 Football logo Afrique sur 7 logo CyberJay logo Élisa Reddet logo Foire du TrĂŽne logo Goodyvest logo Kincy logo Lhotellier logo Audrey MĂ©gelĂ© du Bourg logo MYF logo
Sine Qua Non logo Make It Happen logo Sonance Audition logo ACME logo Beluvia Bar Store logo Desaltera logo FĂȘte des Loges logo GD Menuiseries logo 3G Immo logo Lavish logo Maison du Feu logo Mieux Fiscal logo MYF Tea logo
Go deeper

Articles to go further on the WordPress 500 error guide.

See all articles
What they say about working with us

Google reviews about the support we provide for the Wordpress 500 error causes and solutions. page

Google logo 4,8/5 243 verifiable Google reviews Read the reviews
★★★★★
“A WordPress pro. His skills, his grasp of what we needed and his clear explanations made the whole project run smoothly.”
Nicolas Le Couteur Review published on Google
★★★★★
“Always available to answer questions, very professional. Every technical problem we ran into was resolved.”
Cuong Doan Review published on Google
★★★★★
“A professional who listens to his clients. Thank you for the commitment and the time spent on our project.”
Sakina Sedkaoui Review published on Google
★★★★★
“Someone you can trust, who understood my needs straight away and put an effective strategy in place.”
Vincent Loustalot Review published on Google
★★★★★
“Very attentive, motivated and able to propose tailored SEO strategies. The quality of the work is remarkable.”
Marine Mongodin Review published on Google
★★★★★
“Quality work, delivered on time. Maxime is responsive, suggests relevant adjustments and delivers careful work.”
Olivier Opron Review published on Google
★★★★★
“Spot on, perfect work, nothing to fault!”
Robin Gomez Review published on Google
★★★★★
“Maxime adapts very quickly, even to the trickiest technical situations. The result is always there.”
Philippe Bertieaux Review published on Google
★★★★★
“Impeccable work from start to finish, highly responsive and flawless quality.”
Alex Houillon Review published on Google
★★★★★
“The site is fast and visually very good. Maxime also helped us build our SEO strategy.”
Lois Guillermond Review published on Google
★★★★★
“An exceptional developer.”
Honoré Comlan Koumondli Review published on Google
★★★★★
“Maxime showed great professionalism and great creativity in helping us build our charity’s website.”
Julien-Benoit Birman Review published on Google
★★★★★
“A solid understanding of search optimisation when building a WordPress site.”
JM Review published on Google
★★★★★
“Maxime is responsive, a good teacher, and anticipates what is needed to get the strategy right.”
Romain Bergé Review published on Google
Your site deserves better

Let’s talk about your hosting

Tell us about your project. You get a clear recommendation, no jargon and no commitment.

Get my recommendation Reply within 12 hours ‱ Migration handled ‱ Free quote Active infrastructure
Google logo 243 Google reviewsVerifiable public reviews
Find my plan