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.
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.
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.
- Navigate to your cPanel account
- Enter Software > Select PHP Version
- Select PHP 7.3 from the drop-down menu
- Select packages nd_mysqli and nd_pdo_mysql
- Just Save!
- Your site should be working fine now!