Is PHP8 now recommended for Wordpress 5? (CentOS)

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.

Submit an answer
Answer a question...

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!

Sign In or Sign Up to Answer

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.

Site Moderator
Site Moderator badge
February 20, 2022

Hello there,

I would also like to join the discussion. In the first place, you should always check the official supported PHP versions of WordPress when you’re in the process of upgrading the server’s PHP version/s. I believe that Rexford already provided the link with the requirements, but I’ll post it as well just as a reference:

Another thing to bring is what Bobby already mentioned - CentOS Linux 8 has reached End Of Life (EOL) on December 31st, 2021. You need to plan a migration to another distro or upgrade the server to CentOS stream.

Also when you perform a PHP upgrade your site is likely to experience some issues due to the fact you also have third-party themes and plugins installed which might not work well or at all with the new PHP version in place. You can double check if every plugin and the theme in use support the PHP version and also take a backup of your files and database before you upgrade the PHP version.

Updating your WordPress core installation and all third-party tools (themes, plugins) is also recommended in another to have a smooth transition during version updates and PHP version upgrade as well.

Hope that this helps! Regards, Alex

Bobby Iliev
Site Moderator
Site Moderator badge
February 20, 2022


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.



These are the recommended combinations of versions for WordPress:

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?