Topic: Upgrade main PHP version if Software Collection installed

Hi guys,

I'm just wondering how I can upgrade my main PHP version from 7.0 to 7.2 if I already have PHP 7.2 installed as Software Collection and I run PHP 7.0 and PHP 7.2 parrallel.

The only way if I remove Software Collection first then I do a yum update?

Now it says nothing to update.

Thank you!

Re: Upgrade main PHP version if Software Collection installed

Forgon to mention, I'm running CentOS 6.10

Re: Upgrade main PHP version if Software Collection installed

> I'm just wondering how I can upgrade my main PHP version from 7.0 to 7.2 if I already have PHP 7.2 installed as Software Collection and I run PHP 7.0 and PHP 7.2 parrallel.

If you have both version 7.0 and 7.2 installed, and only 7.0 used

service php70-php-fpm stop
service php72-php-fpm start

should be enough (both listen by default on the same port 9000)

Else, only have to change the SetHandler (apache side) to use correct path.


P.S. not enough information to understand your configuration, so to help yuou

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 28 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: Upgrade main PHP version if Software Collection installed

No, I'm running PHP 7.0 and PHP 7.2 in the same time, just PHP 7.2 already configured to another port and I don't really want to touch it. At least not until I'm not sure everything is working as expected after upgrade.

I'm not really familiar how Linux package manager works, but in this case if  I understand right I can't have PHP 7.2 as default installation and as software package in the same time, because it has the same package name and I can't have it installed twice. Right?

Re: Upgrade main PHP version if Software Collection installed

Please: rpm -qa "php\* | sort"

And give more information how your web serveur (apache ? nginx ?) PHP is configured to execute PHP script.

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 28 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: Upgrade main PHP version if Software Collection installed

Hi,

I've already removed PHP7.2 but still can't update.

php -v
PHP 7.0.32 (cli) (built: Sep 15 2018 09:14:31) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies

yum update
Loaded plugins: fastestmirror, priorities, replace
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: ftp.freepark.org
* epel: mirror.szerverem.hu
* extras: ftp.freepark.org
* remi: mirror.23media.de
* remi-php72: mirror.23media.de
* remi-safe: mirror.23media.de
* updates: ftp.freepark.org
3128 packages excluded due to repository priority protections
No Packages marked for Update

I think the problem that I used webtatic repo to install PHP 7.0, now I disabled it.

Can I upgrade from your repo then?

Your command: rpm -qa "php\* | sort" gives back nothing

Re: Upgrade main PHP version if Software Collection installed

I'm running ISPConfig for web hosting purposes with NGINX + PHP-FPM

Re: Upgrade main PHP version if Software Collection installed

Please answer the questions in my previous post.

BTW, if 7.0 is installed as single / default version, switching the repo is enough
See the wizard instructions

In short

yum-config-manager --disable remi-php70
yum-config-manager --enable  remi-php72
yum update
Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 28 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: Upgrade main PHP version if Software Collection installed

I went trought all steps from the wizard (just to be sure not missing a step) to install single PHP 7.2 on Centos 6, also tried to disable remi-php70 (it was never used actually) and enabled remi-php72 then yum update says the same as above: No Packages marked for Update

Re: Upgrade main PHP version if Software Collection installed

Definitively not enough information.

AGAIN, please answer questions.

And also post full "yum repolist" and "yum update" ouput.

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 28 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: Upgrade main PHP version if Software Collection installed

yum repolist
Loaded plugins: fastestmirror, priorities, replace
Loading mirror speeds from cached hostfile
 * base: [url=ftp://ftp.freepark.org]ftp.freepark.org[/url]
 * epel: mirror.szerverem.hu
 * extras: [url=ftp://ftp.freepark.org]ftp.freepark.org[/url]
 * remi: mirror.23media.de
 * remi-php72: mirror.23media.de
 * remi-safe: mirror.23media.de
 * updates: [url=ftp://ftp.freepark.org]ftp.freepark.org[/url]
3128 packages excluded due to repository priority protections
repo id                  repo name                                                                   status
base                     CentOS-6 - Base                                                             6,570+143
epel                     Extra Packages for Enterprise Linux 6 - x86_64                               12,500+1
extras                   CentOS-6 - Extras                                                               16+17
nginx                    nginx repo                                                                        474
remi                     Remi's RPM repository for Enterprise Linux 6 - x86_64                           5,513
remi-php72               Remi's PHP 7.2 RPM repository for Enterprise Linux 6 - x86_64                  67+243
remi-safe                Safe Remi's RPM repository for Enterprise Linux 6 - x86_64                    0+2,724
updates                  CentOS-6 - Updates                                                                233
repolist: 25,373

yum update
Loaded plugins: fastestmirror, priorities, replace
Setting up Update Process
Loading mirror speeds from cached hostfile
 * base: [url=ftp://ftp.freepark.org]ftp.freepark.org[/url]
 * epel: mirror.szerverem.hu
 * extras: [url=ftp://ftp.freepark.org]ftp.freepark.org[/url]
 * remi: mirror.23media.de
 * remi-php72: mirror.23media.de
 * remi-safe: mirror.23media.de
 * updates: [url=ftp://ftp.freepark.org]ftp.freepark.org[/url]
3128 packages excluded due to repository priority protections
No Packages marked for Update

Re: Upgrade main PHP version if Software Collection installed

Answer is in your paste


> Loaded plugins: fastestmirror, priorities, replace
> 3128 packages excluded due to repository priority protections

As explained by the wizard...

If the priorities plugin is enabled, ensure remi-php72 have higher priority (a lower value) than base and updates

Or, simple way,

yum remove yum-plugin-priorities
Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 28 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: Upgrade main PHP version if Software Collection installed

I don't know actually which else information do you need. PHP-FPM is running on port 9000, I don't know where is set to execute PHP.

Re: Upgrade main PHP version if Software Collection installed

Read my previous post, with solution.

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 28 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test