How to update your PHP version

The single most important reason to update your PHP version is security. PHP versions 5.2 through to 7.4, while still actively in use on millions of sites, no longer get security updates. Another benefit of updating is the ridiculous increase in speed you get. Therefore, we recommend updating to PHP 8.0+


Warning: Undefined array key “className” in /home/staging-yoast/staging-platform.yoast.com/versions/05aa62c2ec01538957086672ffa4a059780fd784/web/app/themes/yoast-theme/html_includes/blocks/landing-page/block-landing-page-list.php on line 21

Create a back-up first!

Before you make any major changes to your site, always create a back-up so you don’t lose valuable content and data.

Most hosts have documentation explaining how you can update your PHP version yourself. In case you cannot do the update yourself, you can ask your hosting company for assistance. Below, we prepared a sample letter that you can use when contacting your host.

Hi,

For security reasons and an increase in speed I want to update the PHP version of my WordPress website to PHP 8.0 or higher. WordPress also strongly recommends the latest version of PHP on their requirements page, https://wordpress.org/about/requirements/.

More information about currently supported versions of PHP can be found here: http://php.net/supported-versions.php.

I’ve heard that sometimes a website can break when updating the PHP version. Can you assist me and update my site safely to PHP 8.0 or higher?

Thanks!

In this list, you can find the documentation on PHP 7 that our hosting partners provide.

HostDocumentation
BluehostPHP version selecting
CloudwaysPHP7 and its compatibility
DreamHostPHP 7 overview
GoDaddyView or change your PHP version
GreenGeeksWhat version of PHP does GreenGeek use?
InMotionUsing multiple PHP versions on one account
InterServerChange PHP version in cPanel
MediaTempleWhat’s new in PHP7
PagelyChanging PHP versions
RAIDBOXESTechnical questions
RoseHostingRoseHosting support
SavviiChanging the PHP version
SiteGroundSwitch to a different PHP version
WP EnginePHP 7 FAQ
LiquidwebUpgrade Apache and PHP using cPanel

Do you work with or own a hosting company and you’d like to be listed here as well? You can go to our Yoast Hosting partnership page and fill in the form.

Did this article answer your question?

Thanks for your feedback!

Get free SEO tips!