Skip to main content

PHP 7.4 deprecated



  • cPRex Jurassic Moderator

    Hey there!  Unfortunately it's impossible to say if there will be issues with the website code.  The only way to know for sure is to make the change and then test out the sites.

    If they are CMS tools such as WordPress it is unlikely you will run into problems.

  • ffeingol

    As long as you don't change the default version of PHP, you're just making the new version available for use.  You/your customers can then switch, test and if needed, revert back if it does not work.  About as low risk as you can get.

  • Benjamin D.

    Yes, there might be issues when migrating from PHP 7.4 to PHP 8.x because PHP 8 enforces more "strict" code and it will complain about a lot of incorrect variable types passed to functions where before with PHP 7 it would not complain.

    Two years ago, when I migrated a bunch of WP websites from PHP 7.4 to PHP 8, I remember very old plugins that had not been updated over 5 years were crashing.  I suggest that you provision both PHP 7.4 and PHP 8.2 in WHM>EasyApache (don't bother with 8.0 and 8.1 since those are deprecated too as of December 2023) and switch one domain at a time in WHM>MultiPHP Manager and test by visiting all the web pages on that website.  If any give you a blank page, then you have to check the error_log file and fix the errors.  Do one domain at a time.

    Keep an eye of that link once a year:

    One tip I will give you and the readers, if the websites on your server are Wordpress, I highly suggest that you upgrade Wordpress to at least 6.1 and if possible to the most recent version available *BEFORE* you switch the domain to PHP 8.2.  If you have WP 5 or even worse, WP 4 sites, then do not upgrade to PHP 8.2 or it will straight not work, at least that's what I discovered two years ago.



Please sign in to leave a comment.