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/a4c25e841414f0e83231dded987decb991c04b7e/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.
Host | Documentation |
---|---|
Bluehost | PHP version selecting |
Cloudways | PHP7 and its compatibility |
DreamHost | PHP 7 overview |
GoDaddy | View or change your PHP version |
GreenGeeks | What version of PHP does GreenGeek use? |
InMotion | Using multiple PHP versions on one account |
InterServer | Change PHP version in cPanel |
MediaTemple | What’s new in PHP7 |
Pagely | Changing PHP versions |
RAIDBOXES | Technical questions |
RoseHosting | RoseHosting support |
Savvii | Changing the PHP version |
SiteGround | Switch to a different PHP version |
WP Engine | PHP 7 FAQ |
Liquidweb | Upgrade 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.