Skip to content

How to Update Your PHP Version in cPanel (and Why Your Kenyan Website Needs It)

Wikimania 2022 Cape Town (Saturday) 11 – How to Update Your PHP Version in cPanel (and Why Your Kenyan Website Needs It)
Photo: Discott, CC BY-SA 4.0, via Wikimedia Commons

Most business owners in Kenya have never heard of PHP, and that’s fine. You shouldn’t have to. But if your website runs on WordPress, PHP is the engine underneath it, and a surprising number of sites we audit are still running a version that stopped getting security fixes years ago.

The good news: on most cPanel hosting, you can update your PHP version in about two minutes. The trick is doing it without breaking anything.

What is PHP, in plain terms?

PHP is the programming language WordPress, WooCommerce and most plugins are written in. When someone in Kisumu opens your homepage, the server runs PHP code to build that page and send it to their phone. The version of PHP on your hosting account decides how fast that happens and how secure it is.

Advertisement

Each PHP version gets roughly two years of active support and then a year or so of security-only fixes. After that, it’s end of life. No more patches, even when serious holes are found.

Why an old PHP version is a problem

1. Security

Running an end-of-life PHP version is like leaving your shop’s back door unlocked because the lock manufacturer closed down. Known vulnerabilities stay open. Combined with an outdated plugin, that’s how a lot of Kenyan WordPress sites end up redirecting visitors to betting or pharmacy spam.

2. Speed

Each major PHP 8 release has been noticeably faster than PHP 7. For a typical WordPress site, moving from PHP 7.4 to a current 8.x version often cuts server response time in a way you can feel, especially on mobile data where every bit of delay counts.

3. Compatibility

Plugin developers are dropping support for old PHP. Eventually you’ll try to update WooCommerce or your page builder and get a message saying your server is too old. WordPress itself shows a warning in Tools > Site Health when your PHP version is outdated.

Step 1: Check what you’re running now

The fastest way is inside WordPress. Go to Tools > Site Health > Info and open the Server section. You’ll see a line like “PHP version: 7.4.33”.

In cPanel, look for MultiPHP Manager or Select PHP Version (the name depends on whether your host uses CloudLinux). Either one shows the current version per domain.

As a rough guide for late 2026: anything starting with 7 is well past end of life. PHP 8.0 and 8.1 are also no longer supported. You want PHP 8.3 or 8.4 for most WordPress sites today.

Step 2: Back up first. Seriously.

Changing PHP versions is usually painless, but an old plugin or theme that hasn’t been updated in years can throw errors on a newer version. Take a full backup before you touch anything. Use your backup plugin, or in cPanel go to Backup and download a home directory and database backup. If your host offers JetBackup, take a snapshot there.

While you’re at it, update WordPress core, your theme and all plugins. Updated plugins are far less likely to complain about new PHP.

Step 3: Change the PHP version in cPanel

If you see MultiPHP Manager:

  1. Open cPanel and click MultiPHP Manager under Software.
  2. Tick the box next to the domain you want to change.
  3. Pick the new version from the dropdown on the right, such as PHP 8.3.
  4. Click Apply.

If you see Select PHP Version (CloudLinux):

  1. Click Select PHP Version.
  2. Choose the new version from the “Current PHP version” dropdown.
  3. Click Set as current.
  4. Check the Extensions tab. Make sure common ones like mysqli, curl, gd or imagick, mbstring, zip and intl are ticked. WordPress needs these.

The change takes effect almost immediately.

Step 4: Test your site properly

Don’t just load the homepage and call it a day. Click through the pages that matter to your business:

  • Homepage, a few inner pages and a blog post
  • Your contact form. Send yourself a test message.
  • If you sell online, add a product to cart and go as far as the M-Pesa or card checkout step
  • Log in to wp-admin and open the plugins page

If everything works, you’re done.

What if something breaks?

Don’t panic. A white screen or a “critical error” message after a PHP change almost always means one plugin or theme isn’t compatible. You have two quick options.

Roll back: go back to MultiPHP Manager or Select PHP Version and choose the previous version. Your site comes back right away. Then find the problem calmly.

Find the culprit: WordPress usually emails the admin address with the name of the plugin that caused the fatal error. Check your inbox. You can also look at the error_log file in your site’s folder via cPanel File Manager. Update or replace that plugin, then try the newer PHP version again.

If a plugin hasn’t been updated in two or three years and breaks on PHP 8, that’s a sign to replace it anyway. It’s a security risk sitting on your site.

How often should you do this?

Check your PHP version about once a year, ideally as part of your regular website maintenance. Put a reminder in your calendar for January. It takes ten minutes including the backup and testing, and it’s one of the cheapest speed and security upgrades you can give your website.

Need a hand?

All our hosting plans let you switch PHP versions per domain from cPanel, and current versions are available by default. If you’re nervous about doing it yourself, contact our support team. We’ll check your site’s compatibility, make the change and confirm everything still works.

Leave a Reply

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

Chat now