PHPWordPress

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

Iakovos Frountas

Iakovos Frountas

In this article

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 ... Read more

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

What is a “500 Internal Server Error” message

Before we fix this issue we need to know what exactly this problem is. All messages who starting with 5** are in general HTTP response status codes that meant something has gone wrong on the web site’s server.

500 Internal Server Error means that your request from the server could not be completed and the server could not be more specific on what the exact problem is.

500 internal server error

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

My site is still not working

If your site isn’t working after doing the above steps please take a look at your plugin list. It is possible to getting this error because you are missing another one PHP package.

For example if you are using WooCommerce and you have installed an external payment gateway for a bank this plugin could require ioncube_loader in order to decode the PHP code and fix the “500 Internal Server Error” message for your site.

Please take a closer look at your plugins list and make sure that you already know what every plugin you have installed on your WordPress site is doing. If you need further assistance do not hesitate to leave a comment on the form below 🙂

 

Iakovos Frountas

Iakovos Frountas

Since 2008 I have helped businesses like yours increase their online presence through powerful websites that help you easily, effectively, and affordably grow your business.

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

  1. Thanks a lot, I just added the additional settings in the php panel, works 100% and loads much faster.

    Reply
  2. Greetings from Colombia!
    you saved me!
    Ivé got a question: I´ve update succesfully to 7.3 php version but on my wordpress panel still appears the “update required” ¿is this normal?

    Reply
    • Updating in PHP 8.0 should not have any problems if you enable all the PHP packages both your host and WordPress wants.

      Reply

Leave a Comment

Grab a cookie!

This site is using cookies in order to provide you the best possible user experience. You can either totally accept or reject our cookies and of course you can anytime edit your preferences from the settings menu.

Accept all Reject all Settings