LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Upgrading PHP on CentOS 8 (https://www.linuxquestions.org/questions/linux-newbie-8/upgrading-php-on-centos-8-a-4175676419/)

ceantuco 06-03-2020 11:29 AM

Upgrading PHP on CentOS 8
 
Hello Everyone,

I am currently running PHP 7.2.11 on CentOS 8. I used the Remi repo to install it. My application now requires PHP 7.3 to run. Can I upgrade from 7.2 to 7.3 by enabling the PHP 7.3 Remi module? or first, I would have to remove PHP 7.2.11 from my system?

Please advise

Thank you

j-ray 06-04-2020 02:28 AM

I recommend to remove the older installation first. I guess things become pretty complicated when you try to run 2 versions of PHP simultaneously.

shruggy 06-04-2020 02:33 AM

According to Remi's instructions you don't have to remove the packages, they should be upgraded in place. But I would also reset the php module beforehand, i.e.
Code:

dnf module reset php
dnf module enable php:remi-7.3
dnf update php\*


j-ray 06-04-2020 02:40 AM

When they get updated in place it is ok of course. I did not know that.

ceantuco 06-04-2020 07:51 AM

shruggy, thank you so much for the link. I did not know you could upgrade in place.
Thanks J-ray for your input as well.

ceantuco 06-04-2020 10:05 AM

I upgraded to PHP 7.3 successfully.
Thank you all!


All times are GMT -5. The time now is 01:52 AM.