Multiple PHP versions for Centos

1 post / 0 new
#1 Fri, 12/09/2016 - 16:25
oneearth

Multiple PHP versions for Centos

hi,

i was following the multiple php install for centos according to" https://www.virtualmin.com/documentation/web/multiplephp

but it couldn't find the php5.6 rpm:

rpm -Uvh https://www.softwarecollections.org/en/scls/rhscl/rh-php56/epel-7-x86_64/download/rhscl-rh-php56-epel-7-x86_64.noarch.rpm
Retrieving https://www.softwarecollections.org/en/scls/rhscl/rh-php56/epel-7-x86_64/download/rhscl-rh-php56-epel-7-x86_64.noarch.rpm
curl: (22) The requested URL returned error: 404 Not Found
error: skipping https://www.softwarecollections.org/en/scls/rhscl/rh-php56/epel-7-x86_64/download/rhscl-rh-php56-epel-7-x86_64.noarch.rpm - transfer failed

i navigated the softwarecollections directories and found a php5.6 rpm:

rpm -Uvh https://www.softwarecollections.org/repos/rhscl/rh-php56/epel-7-x86_64/noarch/rhscl-rh-php56-epel-7-x86_64.noarch.rpm
Retrieving https://www.softwarecollections.org/repos/rhscl/rh-php56/epel-7-x86_64/noarch/rhscl-rh-php56-epel-7-x86_64.noarch.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:rhscl-rh-php56-epel-7-x86_64-1-2 ################################# [100%]

then followed the rest of the virtualmin documentation:

[root@server ~]# yum install rh-php56 rh-php56-php-mysqlnd
Loaded plugins: fastestmirror
rhscl-rh-php56-epel-7-x86_64                             | 3.0 kB     00:00    
rhscl-rh-php56-epel-7-x86_64/primary_db                    |  29 kB   00:00    
Loading mirror speeds from cached hostfile
* base: repo1.dal.innoscale.net
* epel: fedora-epel.mirror.lstn.net
* extras: repo1.dal.innoscale.net
* updates: repo1.dal.innoscale.net
Package rh-php56-php-mysqlnd-5.6.5-9.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package rh-php56.x86_64 0:2.0-6.el7 will be updated
---> Package rh-php56.x86_64 0:2.0-6.el7.centos will be an update
--> Processing Dependency: rh-php56-runtime(x86-64) = 2.0-6.el7.centos for package: rh-php56-2.0-6.el7.centos.x86_64
--> Running transaction check
---> Package rh-php56-runtime.x86_64 0:2.0-6.el7 will be updated
---> Package rh-php56-runtime.x86_64 0:2.0-6.el7.centos will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package          Arch   Version             Repository                    Size
================================================================================
Updating:
rh-php56         x86_64 2.0-6.el7.centos    rhscl-rh-php56-epel-7-x86_64 3.9 k
Updating for dependencies:
rh-php56-runtime x86_64 2.0-6.el7.centos    rhscl-rh-php56-epel-7-x86_64 1.1 M

Transaction Summary
================================================================================
Upgrade  1 Package (+1 Dependent package)

Total download size: 1.2 M
Is this ok [y/d/N]: y
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/2): rh-php56-2.0-6.el7.centos.x86_64.rpm                | 3.9 kB   00:00    
(2/2): rh-php56-runtime-2.0-6.el7.centos.x86_64.rpm        | 1.1 MB   00:00    
--------------------------------------------------------------------------------
Total                                              1.4 MB/s | 1.2 MB  00:00    
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Updating   : rh-php56-runtime-2.0-6.el7.centos.x86_64                     1/4
  Updating   : rh-php56-2.0-6.el7.centos.x86_64                             2/4
  Cleanup    : rh-php56-2.0-6.el7.x86_64                                    3/4
  Cleanup    : rh-php56-runtime-2.0-6.el7.x86_64                            4/4
  Verifying  : rh-php56-2.0-6.el7.centos.x86_64                             1/4
  Verifying  : rh-php56-runtime-2.0-6.el7.centos.x86_64                     2/4
  Verifying  : rh-php56-2.0-6.el7.x86_64                                    3/4
  Verifying  : rh-php56-runtime-2.0-6.el7.x86_64                            4/4

Updated:
  rh-php56.x86_64 0:2.0-6.el7.centos                                           

Dependency Updated:
  rh-php56-runtime.x86_64 0:2.0-6.el7.centos                                   

Complete!

i hope that i didn't mess up any repos. but wanted to check that what i did was okay.

like, why doesn't everyone else get a 404 error with the documented repo?

thanks,