WordPress Error 500: Causes and Solutions at a Glance

Titelbild: WordPress Fehler 500: Ursachen und Lösungen im Überblick

Is your WordPress site suddenly down, your online store offline, and visitors seeing nothing but an error message? Do not panic—your content and data are almost never lost. The WordPress 500 Internal Server Error simply means that the server could not process the request without specifying the exact reason. In almost all cases, the culprit is a corrupted .htaccess file, a faulty plugin or theme, an exhausted PHP memory limit, or incorrect file permissions—and checking the server error log often reveals the exact cause within minutes.

An HTTP 500 error is a catch-all status code. It only tells you that something went wrong on the server side. That is why checking the error log first is always worthwhile before making random changes.

Loose network cables on a dark table

The most common causes

  • Damaged or wrong .htaccess file
  • Plugin or theme with a PHP error
  • PHP memory limit too low
  • Incompatible PHP version
  • Wrong file permissions
Infografik WordPress Fehler 500 beheben: Log, .htaccess, Plugins, Speicher, Dateirechte – Boudmedia

What does the HTTP status code 500 mean?

Every website is delivered via the HTTP protocol, and every request returns a three-digit status code. Codes starting with a 5 stand for errors on the server side. The 500 code is the most general of them: something went wrong, but the server cannot or will not say more precisely what. That makes troubleshooting more demanding than with a clear message, because the cause is in the server log and not on the error page itself.

Depending on your browser, server, and configuration, you will see different error screens: "500 Internal Server Error", "HTTP ERROR 500", "This page is not working right now", or a completely blank white page. It is important that you tell the error apart from related codes, because they have different solutions.

Distinction from 502, 503 and 504

  • 500 Internal Server Error: General server error, usually caused by faulty PHP code, exhausted resource limits, or an incorrect server configuration.
  • 502 Bad Gateway: An upstream server (such as Nginx) gets no valid response from PHP.
  • 503 Service Unavailable: The server is overloaded or in maintenance. After a WordPress update, the .maintenance file sometimes stays behind.
  • 504 Gateway Timeout: A script takes too long and is aborted.

In WordPress, a 500 error is therefore almost always tied to PHP, the .htaccess file, or file permissions. If, on the other hand, the homepage loads while a specific subpage or the wp-admin backend fails, that immediately narrows it down: a specific plugin, page template, or redirect rule is usually responsible.

The causes in detail

Damaged .htaccess file

On Apache servers, the .htaccess controls redirects, permalinks and security rules. A typo, a block entered twice or a plugin that writes faulty rules leads to a 500 immediately. This happens especially often after changing permalinks, after installing caching or security plugins and with manually inserted redirects.

Errors in plugins and themes

The same applies here: a plugin update, a new installation, or a theme update is often the trigger, for example when functions are incompatible with the active PHP version. While a PHP error message would be visible in a staging environment, a live server masks the crash with a plain HTTP 500 for security reasons.

PHP limits and resources

Memory limit, maximum execution time and the number of concurrent processes are limited in every hosting plan. If a script exceeds these limits, the server ends it with an error. On cheap shared hosting plans this happens with imports, backups and shops faster than you would think.

Wrong file permissions and owners

On the server, permissions apply to files and folders. If they are too open or too strict, the server refuses execution. This often happens after migrations, after a restore or when files were uploaded with the wrong user.

Server-side security rules

Security modules such as ModSecurity (Web Application Firewall) block requests that appear suspicious. If a legitimate action—such as submitting a large form or saving changes in a page builder—is falsely flagged as an attack, a 500 or 403 error occurs. In that case, only your hosting provider can adjust or whitelist the rule.

Damaged core files or database

Interrupted updates or a full disk leave core files incomplete. An overloaded or damaged database can also lead to errors. A related situation is described in our article on the white screen in WordPress, where the same steps often help.

How to proceed

1. Read the server error log

You can find the error log in your hosting control panel. It usually lists the exact file path and line number of the error, saving you a lot of guesswork.

2. Check the .htaccess

Rename the file as a test. If the site loads, you create a new file by saving again in the permalink settings.

Laptop with a dark screen and a yellow status light

3. Test plugins and theme

First check your inbox for an email from WordPress Recovery Mode, which often provides a direct login link to fix the issue. Alternatively, rename the plugin folder via FTP, verify that the site loads properly again, and then reactivate plugins one by one. The same applies to your active theme.

4. Check memory limit and PHP version

Increase the PHP memory limit (WP_MEMORY_LIMIT) to at least 256 MB and select a currently supported PHP version (such as PHP 8.2 or 8.3) in your hosting panel.

5. Check file permissions

Usual values are 755 for folders and 644 for files. Wrong permissions, for example from faulty uploads, can trigger the error.

Hands with a tablet in a server room

Resetting the .htaccess file: How it works

Connect via FTP or the file manager, rename the file .htaccess in the root directory to .htaccess_alt and reload the site. If it runs again, the file was the cause. Then go to Settings > Permalinks in the backend and save without changing anything. WordPress then creates a new file. If you want to create it manually, the default version looks like this:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

If you have additional rules for redirects or security, add them bit by bit and check after every change whether the site still runs. Back up the file before you change anything.

Setting file permissions correctly

As a rule of thumb, these values apply to WordPress: folders 755, files 644 and the wp-config.php 640 or 600, if the host allows it. You change them in the FTP program by right-clicking "File attributes". Do not set the values to 777 across the board, because that opens the door to attackers and on some servers itself leads to a 500.

Finding and reading server logs

The log is the key to the cause. With many hosts you find it in the customer area under "Logs" or "Error log". On your own servers it is usually at /var/log/apache2/error.log for Apache and /var/log/nginx/error.log for Nginx. Look for the time when you triggered the error and read the line carefully.

  • "Premature end of script headers": The PHP script was aborted, often due to a PHP error or a time limit.
  • "Invalid command" in .htaccess: The file contains an instruction that the server does not know or does not allow.
  • "Allowed memory size exhausted": The memory limit has been reached.
  • "Permission denied": File permissions or owner do not match.
  • "Cannot allocate memory": The server is overloaded, a case for the host.

Error 500 only in the backend or only for certain actions

If the error only occurs when saving, uploading or in a specific area, it is often due to a plugin for that function or to a limit. When uploading large images, check upload_max_filesize and post_max_size. When saving long posts, security rules can kick in. At the WooCommerce checkout, a look at payment plugins and the memory limit is worthwhile.

Real-world examples from everyday work

Example 1: Permalinks changed, all pages 500

After changing the permalink structure, an SEO or redirect plugin writes invalid syntax rules into the .htaccess file, causing all pages to return a 500 error. After renaming the file and re-saving the permalinks, every page works properly again.

Example 2: The restore sets wrong permissions

After a backup restore, the files belong to a different user. The server refuses execution. The host resets owner and permissions, and then everything runs. If you restore yourself, you should check this right away. How to restore backups is described in the article Restore a WordPress backup.

Example 3: Overloaded shared server

A shop gets many visitors at once through a campaign. The server reaches the process limit, individual pages return 500s. Caching, image optimization and possibly more powerful hosting help here. More on this in WooCommerce slow: How to make your shop faster.

Testing plugins and theme in a targeted way: How to proceed methodically

Instead of deactivating at random, a systematic approach helps. Rename the folder wp-content/plugins so that all extensions are switched off. If the site works now, rename the folder back and define two halves: activate the first half of the plugins and test. If the error occurs, it lies in this half, otherwise in the other. Keep halving until a single plugin remains. This method, known in IT as binary search, saves a lot of time with 30 plugins.

If no plugin is to blame, switch to a default theme by renaming the folder of the active theme. Also check whether a must-use plugin is in the mu-plugins folder. Such files are loaded automatically and do not show up in the plugin list in the backend.

Special cases: Nginx, managed hosting and CDN

Not every website runs on Apache. With Nginx there is no .htaccess, the configuration lies in server files that you usually cannot change yourself. Error 500 or 502 often arises here from PHP processing, for example when PHP-FPM is overloaded. With managed WordPress hosting, providers take over many settings, and there are clear support routes in return. Describe to support exactly when the error occurred and what you changed last.

If a CDN or a firewall runs in front of your website, an error can also arise there. Check whether the site is reachable directly via the server IP or with the CDN deactivated. This way you recognize whether the cause lies with the server or with the upstream service.

What your host needs from you

When you involve support, you speed up the solution with clear information. Note beforehand:

  • The exact error message and a screenshot
  • The time of the first occurrence and the affected pages
  • Recent changes: updates, plugins, settings, PHP switch
  • What you have already tried, for example renamed .htaccess or deactivated plugins
  • The question about entries in the server error log at the stated time

With this information, a technician often finds the cause within minutes. If you also ask about the limits for memory, processes and execution time, you immediately learn whether your plan is sufficient for your site.

Enabling debug mode step by step

So that WordPress writes errors to a file, add three settings in the wp-config.php, directly before the line noting that editing ends here: WP_DEBUG set to true, WP_DEBUG_LOG set to true and WP_DEBUG_DISPLAY set to false. Then you trigger the error again and open the file wp-content/debug.log. The display stays off so that visitors do not see paths and details. After the repair, you set WP_DEBUG back to false and delete the log file, because it can contain sensitive information.

If you do not find a debug.log, the error is triggered before WordPress, for example in the .htaccess or in the server configuration. Then only the server log shows the cause.

Error 500 with Elementor, WooCommerce and others

On websites running a page builder or online store, specific failure patterns appear frequently. Elementor and similar builders demand high memory and script execution time: if the editor crashes with a 500 error while saving, raising the PHP memory limit to 256–512 MB and setting max_execution_time to at least 120 seconds usually solves it. WooCommerce, meanwhile, generates heavy database queries when handling large catalogs, variations, or orders. Implementing object caching (such as Redis) alongside page caching, removing unused plugins, and cleaning up bloated database tables like expired transients and old post revisions prevents timeouts and 500 errors.

Payment and shipping plugins are also typical culprits because they call external services. If the external service does not respond, the script can hang and the server aborts. A look at the log at the time of the checkout shows which extension was involved.

Maintenance mode gets stuck: 503 instead of 500

After an interrupted update, WordPress sometimes permanently shows the message "Briefly unavailable for scheduled maintenance". The cause is the .maintenance file in the root directory. Delete it via FTP and the site is reachable again. Afterwards, check whether the update ran through completely and repeat it if necessary. You will find more on the safe approach in the article Performing WordPress updates safely.

Quick test: Where is the problem?

  • Only the backend shows 500: check plugin, theme or memory limit
  • Only the frontend shows 500: check theme, cache or template
  • All pages show 500: .htaccess, PHP version, file permissions or host
  • Only one specific page: shortcode, block, redirect rule or plugin for that function
  • Only when uploading or saving: upload limits or server security rules

With this classification you save yourself unnecessary steps and reach the goal faster. If you notice that the cause does not lie with you, collect the information from the section on the host and contact support.

Preventing error 500: What you should check regularly

Routine monitoring prevents unexpected downtime during peak traffic. Schedule a 10-minute monthly maintenance check: inspect the server error log for recurring warnings (memory bottlenecks often show up weeks before a full 500 crash), review CPU and RAM usage in your hosting panel, and test critical flows like your contact form, site search, and checkout. Keeping a simple changelog of recent updates also helps pinpoint the exact trigger within seconds if an error occurs.

Common misconceptions about error 500

  • "My host is to blame": Sometimes that is true, but the cause usually lies in plugins, themes or the .htaccess.
  • "Restarting the server solves the problem": Not with code errors. The cause remains.
  • "I have to reinstall WordPress": Almost never necessary. At most, replace the core files.
  • "The error will go away by itself": If it remains after a few minutes, there is a permanent problem.

Also write down your host's contact routes, the customer number and the panel login details in a safe place. In an emergency this saves valuable minutes in which someone would otherwise have to search for passwords or contact persons.

When the host comes into play

If the log shows server errors such as resource limits or configuration problems, only the operator of the server can help. With your own server, that is in your hands, and we are glad to support you.

Checklist: Fixing error 500 in WordPress

WordPress error 500 checklist as an infographic in portrait format – Boudmedia
Error 500 checklist (click to enlarge)
  • Clear browser and CDN cache and test in a private window (to rule out a cached error page)
  • Read the server error log
  • Rename .htaccess and re-save permalinks
  • Deactivate plugins via FTP, set the theme to default
  • Check memory limit and PHP version
  • Check file permissions: folders 755, files 644
  • Upload core files again if damaged
  • Contact the host if logs point to server limits or security rules
  • Restore a backup if nothing helps

How to prevent error 500

  • Make a backup before every change and check updates in a test environment
  • Use only maintained plugins and remove unused ones
  • Always back up changes to the .htaccess and test them one at a time
  • Choose a hosting that makes logs, backups and PHP settings easily accessible
  • Monitor availability so that you notice outages immediately

If you do not want to risk updates yourself, read our guide Performing WordPress updates safely or let us take over the maintenance. Our Error Fix service finds and fixes the cause for you.

Frequently asked questions

Is error 500 dangerous?

It is a server error, not an indication of a hack. Still, check whether changes or updates ran beforehand.

Why does it only occur on some pages?

Then it is often a specific plugin, shortcode or script that only runs there.

Does clearing the cache help?

Rarely for an active server-side 500 error, since HTTP status code 500 is not cached by default. However, always clear your browser, plugin, and CDN cache immediately after applying the fix so visitors are no longer served a cached error page.

How do I recognize the error in the log?

Look for log entries labeled "PHP Fatal error" or "PHP Parse error". Right next to them, you will see the full file path (often revealing the exact plugin or theme folder) and the specific line number.

Stuck, or do you not want to take any risk? We take over the troubleshooting. More on this on our page Error Fix service, and with a current backup you are always on the safe side.

What is the difference between error 500 and the white screen?

The main difference lies in what you see on screen: with a classic 500 error, the server or browser displays an error page, whereas the White Screen of Death leaves the screen completely blank—even though the server often sends HTTP status code 500 in the background as well. The underlying causes, such as faulty plugins, PHP errors, or an exhausted memory limit, are nearly identical.

Can I fix the error myself without programming knowledge?

Often yes. The steps with .htaccess, plugin folder and memory limit are possible without code. For logs with unclear messages or server limits, the host or an expert helps.

Does a 500 harm SEO?

Brief, isolated outages lasting a few minutes are harmless for Google. However, if an HTTP 500 error persists for hours or days, Googlebot reduces its crawl rate and may demote affected URLs or temporarily drop them from the index. Fix the error promptly and verify in Google Search Console under Page Indexing that all URLs are reachable again.

Your next step

Do you want to know what specifically needs to be done for you? We will take a look at your site and tell you honestly what is needed. Start with the free check or read how our Pagespeed Boost works.

Amine Boudounite

About the author

Amine Boudounite

Amin is the founder of Boudmedia and builds WordPress websites, online shops and business sites. In his guides he explains technology, loading speed and visibility so that you can apply them without any prior knowledge.

Contents
Help with your WordPress site?

We take a free look and tell you honestly what is needed and what it costs.

Share post

You might also be interested in

WordPress Backend Slow? How to Speed Up the Dashboard

Wenn das WordPress-Dashboard träge ist: Ursachen und Maßnahmen im Überblick.

Finding and Fixing a WordPress Plugin Conflict

So findest du den Plugin-Konflikt in WordPress und löst ihn ohne Datenverlust.

Google Shopping with WooCommerce: How to Make Your Feed Error-Free

Wie ein sauberer Produktfeed für Google Shopping aussieht und welche Fehler du in WooCommerce vermeiden kannst.

Problems with your WordPress site? We fix them at a fixed price.

  • Free check of your site
  • Honest assessment of what is needed
  • Fixed price before we start
  • Reply within 24 hours on business days
Scroll to Top