WordPress Database Update Threw 500 Internal Server Error

A database update was required after one of my recent WordPress upgrade, which turned to a 500 Internal Server Error. No matter how many times I tried, I just couldn’t pass the data upgrade screen to get into the WP-Admin panel.

Look further to the error log on the server, it’s the line below that triggered the 500 Internal Server error.

[Thu Mar 12 15:00:38 2015] [error] [client 206.108.25.10] Premature end of script headers: upgrade.php,

And adding the following line in the wp-config.php file magically fixed the issue.

ini_set("zend.ze1_compatibility_mode",0);

Hope it helps if you encounter the similar error when upgrading WordPress and its database.

Leave a Reply

Your email address will not be published. Required fields are marked *