Report this

What is the reason for this report?

Is PHP8 now recommended for Wordpress 5? (CentOS)

Posted on February 19, 2022

Just checking from fellow CentOS and Wordpress users. Last time, a year ago, I tried upgrading PHP 7.4 to 8.0 it gave massive issues with WP. Is this now a safe option? My CentOS is 8.5.11.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @Nearly Normal,

I’ve looked around and it seems like the currently supported PHP versions for WordPress are:

PHP Version 7.4 (Security Support, ends on 28/11/2022)
PHP Version 8.0 (Active Support, ends on 26/11/2022)
PHP Version 8.1 (Active Support, ends on 25/11/2023)

This means it should be safe to upgrade your PHP version to 8. Having said that, if you think there might be issues, I’ll recommend creating a snapshot of your Droplet prior to upgrading the PHP version.

These are the recommended combinations of versions for WordPress: https://wordpress.org/about/requirements/

Were your massive issues related primarily to WordPress, or the third-party plugins/themes you might have been using which were not updated to support PHP 8?

Hello,

In addition to what has already been mentioned, I wanted to point out that CentOS Linux 8 has reached End Of Life (EOL) on December 31st, 2021.

I would strongly recommend planning either migration to another OS like Debian or Ubuntu, or upgrading to CentOS Stream.

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.