Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR
WordPress Technical Guide

How to Fix WordPress 500 Error and White Screen of Death?

HTTP 500 indicates the web server was unable to complete the request; a white screen indicates the PHP error was terminated before it was displayed to the visitor. Both symptoms can be caused by an extension or theme error, as well as .htaccess, PHP-FPM, permission, and web server configuration issues.

HTTP 500White ScreenPHP-FPMhtaccesserror_log
root@server:~SSH
HTTP/1.1 500 Internal Server Error
PHP Fatal error
Premature end of script headers
AH01071: Got error 'Primary script unknown'
WordPress LayerKernel, theme and plugin behavior.
PHP layerVersion, extension, limit, and fatal error
Server layerWeb service, database, disk, and logs
Secure MethodBackup, log, isolate, and verify
01
Technical description

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

The 500 server is a general failure code. The white screen is the empty response body; the HTTP code can even be 200. Therefore, the response code and error log are more important than the browser view.

Corrupted or unsupported .htaccess directive on Apache can create 500 before WordPress starts; existing file should be backed up before updating permalink rules.

PHP fatal error, memory exhaustion, and max execution time issues can produce both 500 and blank pages. WordPress debug.log should be examined at the same time interval as the domain PHP error log.

Only the plugin, shortcode, theme template, or large query is targeted if a specific page or process is returning an error. If the entire site is affected, PHP handler, FPM, and web server are checked.

Cloudflare 520/521-like intermediary layer errors should not be confused with WordPress 500. The origin server should be tested directly, separating the CDN layer.

Forcing the HTTP code to 200 or hiding the error screen is not a solution. The application, PHP and web server logs should be searched to find out which layer the request was cut off at.

02
Log messages and their meanings

WordPress 500, white screen, and FastCGI error messages

Search for the phrase you see in the email, browser, or SSH log. Each card includes meaning, probable cause, and safe initial action.

8 registration
01kritik

500 Internal Server Error

Meaning: The server has failed to complete the request and returned a general 500 error.

Possible cause: PHP fatal error, .htaccess, permissions, or web configuration.

Verify the code using curl and inspect the domain error log.
02kritik

White Screen of Death

Meaning: WordPress/PHP has been terminated without output.

Possible cause: Fatal error, out of memory or empty template.

Log the actual PHP error using WP_DEBUG_LOG.
03kritik

Premature end of script headers

Meaning: The FastCGI/PHP process has closed without producing a valid header.

Possible cause: Crash, timeout, permission, or incorrect PHP binary.

Check PHP-FPM and domain logs simultaneously.
04kritik

Allowed memory size exhausted

Meaning: PHP memory limit has been reached.

Possible cause: Heavy plugin, import, Elementor, or loop.

Find which file is consumed from the log.
05warning

Maximum execution time exceeded

Meaning: The PHP operation has exceeded the time limit.

Possible cause: Slow query, external API, or large operation.

Do not increase the limit without measuring why the process is taking longer.
06kritik

Invalid command 'php_value'

Meaning: Apache used PHP handler does not accept .htaccess php_value directive.

Possible cause: Legacy .htaccess settings with FPM/FastCGI.

Move php_value lines to the correct PHP configuration channel.
07kritik

Primary script unknown

Meaning: PHP-FPM cannot find or access the desired script path.

Possible cause: Incorrect document root, socket, or permission.

Compare the domain root directory and FPM pool path.
08warning

Too many internal redirects

Meaning: The server has entered a redirect loop.

Possible cause: Incorrect .htaccess, canonical, or SSL rule.

Temporarily isolate rewrite rules.

No records matching this expression were found.

03
Secure first review

SSH diagnostic commands and what output to look for?

Commands are for root access. Collect only status and logs first; Do not change the permanent setting without seeing the reason.

HTTP codes and headers
curl -sSIk https://example.com/

Displays the real HTTP code and redirect chain.

WordPress debug log
tail -n 150 wp-content/debug.log 2>/dev/null

Displays WordPress/PHP fatal error lines.

Apache/Nginx logs
tail -n 150 /var/log/apache2/error.log 2>/dev/null
tail -n 150 /var/log/nginx/error.log 2>/dev/null

Shows why the web server's request was denied.

htaccess backup and test
cp .htaccess .htaccess.once && mv .htaccess .htaccess.devre-disi

Controlled test for corrupted rewrite or directive possibility.

Safe plugin deactivation
wp plugin deactivate --all

It only temporarily disables all plugins in a backup and scheduled test.

Core verification
wp core verify-checksums

Detects modified or missing WordPress core files.

04
By hosting environment

Controls to be applied on cPanel, Plesk and panelless server

The root cause of the WordPress error is the same, but log paths, PHP settings screens and service management vary depending on the hosting infrastructure used.

cPanel / WHM

In cPanel, 500 sources are separated via Metrics > Errors, MultiPHP, and File Manager.

  • Record the last PHP/Apache line on the Errors screen.
  • Verify the correct PHP version in MultiPHP Manager.
  • Backup and recreate permanent links of .htaccess file.
cd /home/KULLANICI/public_html && wp rewrite flush --hard

Plesk Obsidian

Plesk's Domains > Logs and PHP Settings simplify domain-based 500 error analysis.

  • Filter Apache, Nginx, and PHP messages on the Logs screen.
  • Verify PHP handler and FPM settings.
  • If necessary, run Plesk repair web for the domain only.
plesk repair web example.com

Panel-less Linux Server

On a panel-less server, web server, PHP-FPM, and WordPress logs are simultaneously monitored.

  • Run Nginx/Apache config test.
  • Check the PHP-FPM pool status.
  • Verify the document root and file ownership.
nginx -t 2>/dev/null || apachectl configtest
05
Safe solution order

Safe steps to resolve WordPress 500 and white screen issues

Verify the HTTP code, find the log, separate the .htaccess and PHP layers; then test the components in a controlled manner.

1

Determine the real HTTP code

Check if the white screen is a 500 error or an empty 200 response with curl.

curl -sSIk https://example.com/
2

Record the first error in the log.

Compare the same second in the domain error log, PHP log, and debug.log.

tail -n 150 wp-content/debug.log
3

test the effect of htaccess

Temporarily rename the file without deleting it and compare the result.

cp .htaccess .htaccess.once
4

Isolate themes and extensions

Shut down the component visible in the log first; bulk shutdown should be the last option.

wp plugin list --status=active
5

Verify PHP handler and resources

Check version, FPM service status, memory and timeout values.

php -v && php -i | grep memory_limit
6

Refresh permanent link and cache layer

After the issue is resolved, clean the rewrite rules and application cache.

wp rewrite flush --hard
06
Distinction by symptom

Special scenarios and decision trees

Only wp-admin returns 500

Admin memory, dashboard extensions, and REST/AJAX logs are examined.

curl -sSIk https://example.com/wp-admin/
Only a single article or product page

Template, shortcode, product extension and record-specific data are examined.

wp post get ID
White screen after plugin installation

Close the new plugin via FTP or WP-CLI and check the log again.

wp plugin deactivate EKLENTI
500 error on all site after PHP version

Check for incompatible extensions/themes and missing PHP extensions.

php -m
Error occurs when Cloudflare is open

Determine where the loop starts by sending a direct request to the Origin IP/hosts and testing it directly.

curl -sSIk --resolve example.com:443:ORIGIN_IP https://example.com/

Absolutely don't

  • Do not delete .htaccess file without backup.
  • Don't make all file permissions 777.
  • Leave display_errors setting visible to visitors open.
  • Don't keep changing PHP versions without checking the log.
  • Do not assume Cloudflare cache clearing is a root cause solution.
  • Do not write core files to wp-content.

Post-solution verification

  • Home page, wp-admin, and example content return expected code.
  • No new PHP fatal error log is being created.
  • Rewrite and persistent links are working.
  • PHP-FPM and web service are active.
  • File ownership/permissions are at secure values
  • Cron, REST API, and admin-ajax operations are working.
07
Official technical resources

WordPress and WP-CLI official documentation

08
Internal SEO content set

Related WordPress error solutions

09
Frequently asked questions

WordPress 500 and White Screen Curiosities about

What is a 500 Internal Server Error?

The general HTTP code indicating that the server request was not completed; the exact reason can be found in the error log.

Why doesn't the white screen show an error?

If PHP error display is closed, fatal error details may not be displayed and a blank response may occur.

Should I delete the .htaccess file?

Deleting instead backing up and temporarily renaming and then regenerating WordPress permanent link rules is safer.

Is it safe to disable all extensions?

This is possible for testing purposes but may affect payment, security, and cache functions; the suspicious plugin in the logs should be targeted first.

Does the 500 error come from the database?

Yes; PHP fatal error, connection timeout or heavy query 500 can be created.

Is Increasing PHP Memory Limit Enough?

It only helps if the limit is really low. It should not hide memory leaks or incorrect loops.

Does Cloudflare cause a 500 error?

Cloudflare may show origin error or produce their own 52x codes; origin must be tested directly.

EKA SOFTWARE AND INFORMATION SYSTEMS

Let's fix the error on your server permanently

By analyzing cPanel, WHM, CloudLinux, LiteSpeed, MariaDB, Exim and security layers together, we fix the root cause of the failure instead of just removing the service.

Get Server Support WhatsApp
Top