This brief tutorial shows students and new users how to use PHP 8.0 with WordPress on Ubuntu 20.04 | 18.04.

The team at WordPress continues to encourage all users to run the latest and greatest versions of PHP. So if PHP 8.0 is fully supported, you may want to upgrade to it and make use of its newest features and enhancements that were released.

At this moment, PHP  8.0 is not ready to be used with WordPress. WordPress 5.6 which is being released in couple of weeks as of this date, might support it, but developers are still calling WordPress 5.6 “beta compatible” to PHP 8.0.

If PHP 8.0 works with core WordPress functions, I doubt all themes and plugins will work without issues at this moment.

However, if you really, really want to give it a shot, simply continue below upgrade to PHP 8.0 and use it with WordPress.

If you haven’t installed WordPress, search our website to learn how to install it on Ubuntu.

Upgrade to PHP 8.0 with Nginx

If you’re running Nginx on Ubuntu to support WordPress, the steps below show you how to upgrade to  PHP 8.0-FPM.

This post assumes that you’re running PHP 7.4 or previous.

Currently, Ubuntu does not have  PHP 8.0-FPM packages available in its default repositories. In order to install the latest versions of PHP on Ubuntu you may have to add third-party repositories.

Simply run the commands below to add the below repository to Ubuntu.

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php

#applications #labs #linux ubuntu #wordpress labs #wordpress #php

Upgrade WordPress to PHP 8.0 on Ubuntu 20.04 | 18.04
1.10 GEEK