How to Change the PHP Version of a Website

If your job has anything to do with computers, you are most probably familiar with the constant reminders about the importance of using the latest version of every single piece of software you interact with. Chances are, you are even more familiar with the problems this could cause sometimes.

Unfortunately, far too often, compatibility issues, higher hardware requirements, and bugs go hand-in-hand with the process of applying software updates. Yet, despite this, experts continue to advocate the use of the most recent versions of every single piece of software. PHP, the programming language that powers close to 80% of the world’s websites, is no exception. But do website owners actually heed the advice?

PHP’s latest major release is PHP 7.4, but according to W3Techs’ usage statistics, about 43% of all PHP websites still use PHP 5. Of the rest, nearly a third employ PHP 7.2, which is rapidly approaching its end of support in November 2020.

Changing the PHP version in SPanel

Because PHP is so popular and because different websites require different versions of the programming language, we needed to make sure that changing the PHP version is quick and easy. Here’s how to do it:

  1. Log into SPanel’s User Interface and open the PHP manager.
    The default login URL for SPanel’s User Interface is https://yourdomain.com/spanel (make sure you swap yourdomain.com for your actual domain). The PHP Manager is available under the Tools section on the homepage.
How to Change the PHP Version of a Website, Changing the PHP version in SPanel
  1. Click the Change button next to the website you want to modify.
    You’ll see a list of all the domains and subdomains hosted on your account. You can change the PHP versions of all of them individually.
How to Change the PHP Version of a Website, Changing the PHP version in SPanel 2
  1. Choose the PHP version you want to use and save the changes.
    A popup appears with all available PHP versions. Pick the one you want to use and click Change.
How to Change the PHP Version of a Website, Changing the PHP version in SPanel 3

Why is it important to use PHP’s latest version?

We had to give our customers the chance to run their websites on older PHP versions, but this doesn’t mean that we’re encouraging it. There are a number of different reasons why you should switch to PHP’s latest version, if possible.

As always, the most important advantage that the new version brings is the added security. PHP vulnerabilities are discovered day in, day out, and you need to ensure that you are protected from them. Many people aren’t. 

Quite a few websites run on PHP 5.6, for example, which stopped receiving security updates in January 2019. All the security holes that have been discovered since then remain unplugged for websites running on it.

Of course, there are other benefits to using the latest version. New features and performance upgrades are constantly introduced, and although there are teething problems and bugs sometimes, when the community supporting the project is as big as PHP’s, the issues tend to get sorted quite quickly.

The only real problems that can appear are related to compatibility. Older Content Management System plugins and themes might not work correctly under newer PHP versions. If that is the case, however, chances are, these themes and plugins are security problems themselves, so you might want to think about ditching them for something more modern. 

In a worst-case scenario, you’d need to reconfigure the entire website to work with the newer PHP version, which could be a significant task. Even in such cases, however, the security benefits outweigh any disadvantages by a mile.

How to Change the PHP Version

Was this helpful?

What’s your goal today?

1. Find the right Managed VPS solution

If you’re looking for industry-leading speed, ease of use and reliability Try ScalaHosting with an unconditional money-back guarantee.

2. Make your website lighting fast

We guarantee to make your WordPress site load in less than 2 seconds on a managed VPS with ScalaHosting or give your money back. Fill out the form, and we’ll be in touch.

Please enter a valid name
Please enter a valid website
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

3. Streamline your clients’ hosting experience

If you’re a web studio or development agency hosting more than 30 websites, schedule a call with Vlad, our co-founder and CTO, and see how we can deliver unmatched value to both your business and your clients.

Photo

Need a custom cluster or professional advice?

Book a meeting and get a free 30-minute consultation with Vlad, co-founder & CTO of Scala Hosting, who will help you select, design and build the right solution - from a single data center cluster to a multi-region & multi-datacenter high availability cluster with hundreds of servers.

Book a free consultation

4. Learn how to grow your website in 2024

An all-star team of SEO and web influencers are sharing their secret knowledge for the first time in years. Learn about the future of SEO, Web Design best practices and the secrets to getting the foundation for your website to thrive. Watch the exclusive webinar.

An Exclusive Insiders Look Behind The SEO and Web Development Curtain

Rado
Author

Working in the web hosting industry for over 13 years, Rado has inevitably got some insight into the industry. A digital marketer by education, Rado is always putting himself in the client's shoes, trying to see what's best for THEM first. A man of the fine detail, you can often find him spending 10+ minutes wondering over a missing comma or slightly skewed design.