Skip to main content

Update to PHP 7.x, but leave 5.6 as default

Comments

8 comments

  • cPanelLauren
    Hello, You would just go to WHM>>Software>>EasyApache and install the PHP version/s you need along with any PHP extensions you'll want for that version. Once that is complete you can assign the PHP version to any domain you choose
    0
  • GoWilkes
    Right now they all say "Inherit", so I guess that I need to change all of them before the update. For future readers, I figured out how to do what I'm wanting. Go to MultiPHP Manager, select all of the domains, and in the upper right select "PHP Version: PHP 5.6" (or whatever) and apply. This will change them from Inherit to 5.6. Then you can update PHP to 7.x, but all of the domains will be manually assigned to 5.6. Then you can change them one at a time back to Inherit.
    0
  • GoWilkes
    On a slight tangent... I've installed 7.3 and 7.4, and still need 5.6, but is there any reason to NOT uncheck 5.4 and 5.5 from Easy Apache to remove them? Does this automatically remove any extensions that they used that no longer apply to 5.6, 7.3, or 7.4? Or do I need to hunt them down manually?
    0
  • andrew.n
    Other than they are outdated, vulnerable and not supported for like 5 years or so nothing :D so If you want to keep the server up to date I would strive to move the accounts as high PHP versions as possible. Currently PHP 7.2,7.3 and 7.4 is supported but as far as I remember 7.2 will be outdated by November as well. If you uncheck (remove) 5.4 or 5.5 that will remove only that version from the server along with all extensions installed for those versions. It will not touch any other PHP versions or their modules. They are installed separately.
    0
  • andrew.n
    oh and btw don't forget that CentOS 6 will be EOL (end of life) in November too :(
    0
  • andrew.n
    Of course not for free but yes it's certainly an option :)
    0
  • GoWilkes
    Yeah, that's a pretty big concern :-( I'm not all that comfy with updating the OS on a live server, so the plan WAS to order a new server and just move everything over piecemeal. But then COVID came along and wiped out 90% of my revenue stream, so now I really have no idea what I'm going to do about it.
    0
  • andrew.n
    Unfortunately there is no way to directly upgrade from 6 to 7 so the only way is to get a new server or backup everything, reinstall and restore. You still have time till November and I think 1-2 extra months will not hurt much and even after as @MindServer mention there is the CloudLinux option so not everything is lost :) Stay safe!
    0

Please sign in to leave a comment.