Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Update Your PHP Version in WordPress (the RIGHT Way)

Do you want to update the PHP version of your WordPress site?

Using the latest PHP version for your WordPress website improves performance and website speed. However, sometimes, your web hosting company may use an older PHP version.

In this article, we will show you how to easily update the PHP version of your WordPress website.

Updating the PHP version for your WordPress website

Here is an overview of the topics we will cover in this article:

Why Update the PHP Version of Your WordPress Site?

Updating the PHP version can significantly improve the performance of your WordPress website.

Each PHP version improves performance by more efficiently running processes and reducing memory usage. This impacts your WordPress site speed by making it faster and reducing the load on your server.

WordPress is developed using an open-source programming language called PHP. At the time of writing this article, it requires at least PHP version 7.4 or greater. The current stable version available for PHP is 8.2.10.

Most WordPress hosting companies use PHP versions 7.4 or higher to meet the minimum WordPress requirements.

Normally, WordPress hosts automatically update the PHP version in the background. These updates do not affect most websites; you may not notice any change.

Occasionally, a plugin on your WordPress website may misbehave due to incompatibility with a newer PHP version. In that case, some website owners might want to switch back to the older PHP version until a plugin update fixes that issue.

How to Check the PHP Version in WordPress

WordPress makes it easy to check the PHP version used by your host.

Go to the Tools » Site Health page in the WordPress admin area and switch to the ‘Info’ tab.

Info section under WordPress Site Health tool

Next, you need to scroll down a little and click to expand the ‘Server’ tab.

This section shows server information, including the PHP version used by your server.

PHP version displayed in Site Health tool

As you can see in the screenshot above, our demo website uses PHP version 7.4.21.

Updating the PHP Version on Your WordPress Site

All top WordPress hosting companies allow you to easily change the PHP version used by your website.

We will show you a few examples from top hosting providers.

Changing PHP Version in Bluehost

First, you need to log in to your Bluehost hosting account dashboard and click on the ‘Advanced’ tab in the left column.

Bluehost Advanced

This will open the advanced cPanel dashboard.

From here, you need to scroll down to the software section and click on the ‘MultiPHP Manager’ icon.

MultiPHP manager

On the next page, you need to select your website,

Then, pick the PHP version that you want to use.

Changing PHP version in Bluehost

Click on the ‘Apply’ button to save your changes.

Bluehost will now start using the PHP version you selected for your website.

Changing the PHP Version in Hostinger

First, log in to your Hostinger account dashboard and switch to the ‘Websites’ tab.

From here, you need to click the ‘Manage’ button next to the website where you want to change the PHP version.

Manage website in Hostinger

This will take you to that particular website’s hosting setup.

Next, navigate to the Advanced » PHP Configuration menu from the left sidebar.

PHP Configuration in Hostinger

Hostinger will now show you available and supported PHP versions to choose from.

Select the PHP version you want to use and click the ‘Update’ button to save your settings.

Select PHP version in Hostinger

Changing PHP Version in SiteGround

If you are using SiteGround hosting, then here is how you will update the PHP version of your WordPress website.

First, you need to log in to your SiteGround account dashboard.

After that, switch to the ‘Websites’ page and click on the ‘Site Tools’ button next to your website.

Site Tools section on SiteGround

Next, you need to go to DEVS » PHP Manager from the left column.

From here, you can choose to use SiteGround’s Ultrafast PHP or Standard PHP. You can also change the PHP version number by clicking on the ‘Edit’ icon.

PHP Manager in SiteGround

This will bring up a popup.

You first need to select ‘Change PHP version manually’ under the ‘Set PHP Version’ option.

Changing PHP version in SiteGround

After that, you will be able to select your PHP version from a dropdown menu.

Don’t forget to click on the ‘Confirm’ button to apply your changes.

Changing PHP Version in HostGator

First, you need to log in to your HostGator hosting account dashboard and then click on the ‘Hosting’ section.

You then need to click on the ‘cPanel’ link under your website.

Launch HostGator cPanel dashboard

This will launch the cPanel dashboard, where you can manage advanced settings for your hosting account.

You need to scroll down to the Software section and click on the ‘MultiPHP Manager’ icon.

Launching MultiPHP manager in HostGator

Next, you need to select your domain name and then choose the PHP version. Don’t forget to click on the ‘Apply’ button to save your settings.

Changing PHP Version in WP Engine

WP Engine is a managed WordPress hosting company, which means they automatically upgrade the PHP version for you. However, you can also manually upgrade and downgrade the PHP version for your websites.

Simply log in to your WP Engine dashboard and click on the PHP version next to your website.

Changing PHP version in WP Engine

This will bring up a popup where you can choose to downgrade or upgrade the PHP version of your WordPress website.

Choose an option and click on the ‘Change PHP version’ button.

Upgrade or downgrade PHP version in WP Engine

Changing PHP Version in Other WordPress Hosting Environments

Most WordPress hosting companies use similar hosting dashboards with some customizations. Usually, you will find the MultiPHP Manager icon in the cPanel dashboard.

If you cannot find it, then you can contact your WordPress hosting provider and ask them to change the PHP version of your website.

Frequently Asked Questions About Changing PHP Version

Following are some of the commonly asked questions from our users about updating the PHP version of their WordPress websites.

1. What should you do after updating the PHP version?

After updating the PHP version for your WordPress website, you may want to ensure that everything is working as expected.

We recommend visiting your website to see if there are any immediately noticeable issues.

After that, you can log in to the WordPress admin area of your website.

Ensure your website uses the latest version of WordPress and all your plugins and themes are updated. See our beginner’s guide on how to safely update WordPress.

Lastly, it is always recommended to make a complete backup of your WordPress website.

2. What do I do if a PHP update breaks my WordPress website?

It is unlikely that a PHP update will break a WordPress site. However, with the abundance of free and paid plugins, there is still a chance that a single line of poor code can result in any of the common WordPress errors.

First, you must ensure it is not a plugin or theme causing this error.

To do that, you need to deactivate all your WordPress plugins and switch to a default WordPress theme.

If this does not solve your issue, then contact your web host’s support team. There is a good chance that the issue you are facing will already be on their radar, and they will be able to assist you.

If your web host is unable to help you out, then you can downgrade your PHP version using the methods described above.

We hope this article helped you learn how to update the PHP version of your WordPress site. You may also want to see our guide on how to create an email newsletter or our comparison of the best live chat software for your website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

9 CommentsLeave a Reply

  1. Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. I tried changing from 7.4 to 8.1 and when I do that my website returns a 403 error. Anyone knows why?

  3. I did change my php version in c panel but it didnt reflect on my Dashboard it is still 7.3

    • We would recommend checking with your hosting provider to ensure nothing on their end prevented the update or that a confirmation is not needed before they update your php.


  4. What do you do if the MultiPHP software is not available on cPanel? Like in my case. What is the RIGHT way then?

    • IT would depend on your specific hosting provider, we cover multiple hosts in this list and if your hosting provider is not included and does not use one of the methods from the hosts above, we would recommend reaching out to their support and they should be able to assist.


  5. Thanks for this wonderful article. What is the difference between changing the php verion from above method and using htaccess. Will there be any effect in the site and its performance ?

  6. Great Article, I just updated the PhP version my entire site went down, and that is because most of the plugins and page builder doesn’t support the newer version of PhP, so I went back to the older version, just wanted to say that, Thanks

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.