How to update a WordPress site to PHP 7.3 without “500 Internal Server Error”

As you probably already know, now in WordPress version 5.1 PHP 7.3 is the recommended version of PHP to run a WordPress site, but you don’t have to worry because many older versions of PHP are still supported today and your site will be working fine.

You should consider upgrading to PHP 7.3

PHP language is evolving always even if it might not often feel that way. PHP has been powering most of the internet for a couple of decades.

A part of the success story has been the fact that WordPress, the most popular website platform in the world, is built on it.

PHP version 5 was first released in 2004(!), and 5.6 was the last version of PHP 5 that was still recently supported. It reached its end-of-life at the beginning of 2019, so it was a good time to upgrade.

WordPress 5.1

Now WordPress is checking which version of PHP your site is running. Your WordPress installation will work fine with older versions but you have to consider the long-term health of your website. Faster and safer up-to-date version PHP 7.3 is the recommended version for WordPress but if you try to update your site likely you will get a “500 Internal Server Error” message.

WordPress Dashboard new feature PHP Update Required

Fix “500 Internal Server Error” an get WordPress work with PHP 7.3

This error caused by mysql_connect() function. The PHP 7.3 inside cPanel has mysqli extensions disabled by default so we have to enable them manually. The steps are simple. All we need is access to our cPanel and follow this process.

  1. Navigate to your cPanel account
  2. Enter Software > Select PHP Version
  3. Select PHP 7.3 from the drop-down menu
  4. Select packages nd_mysqli and nd_pdo_mysql
  5. Just Save!
  6. Your site should be working fine now!

cPanel select php 7.3 version in order to work with WordPress

 

2 comments on “How to update a WordPress site to PHP 7.3 without “500 Internal Server Error”

Leave a Reply

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