LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-03-2020, 12:29 PM   #1
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809

Rep: Reputation: 88
Question 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
 
Old 06-04-2020, 03:28 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
I recommend to remove the older installation first. I guess things become pretty complicated when you try to run 2 versions of PHP simultaneously.
 
Old 06-04-2020, 03:33 AM   #3
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,669

Rep: Reputation: Disabled
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\*
 
Old 06-04-2020, 03:40 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
When they get updated in place it is ok of course. I did not know that.
 
Old 06-04-2020, 08:51 AM   #5
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809

Original Poster
Rep: Reputation: 88
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.
 
Old 06-04-2020, 11:05 AM   #6
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809

Original Poster
Rep: Reputation: 88
I upgraded to PHP 7.3 successfully.
Thank you all!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
After upgrading php 5.3.8 to php 5.4.30 php files are not being executed kingkashif Linux - Server 5 06-26-2014 11:15 AM
PHP error after upgrading to latest version of PHP Skillz Programming 3 08-17-2012 09:02 PM
PHP Warning after upgrading from PHP 5.2.1 to 5.3.1 on CentOS rossie Linux - Newbie 4 12-20-2009 03:18 PM
Upgrading PHP on CentOS? subnet_rx Linux - Distributions 1 03-15-2008 11:26 AM
Upgrading PHP 4.2.2-17 to PHP 4.3.2-3 Qwik Linux - Software 3 06-27-2003 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration