Install multiple PHP on CentOS 6.10

NetworkNewbie asked:

I have PHP 7.0 on my VPS with CentOS 6.10 and there is an application that needs PHP 7.1 and above. Also, there’s a separate application that uses a php function that is deprecated in PHP 7.1, so I need both PHP 7.0 and 7.1

I have the remi-php70 and remi-php71 repositories, but when I do the yum --enablerepo=remi-php71 install php71 it shows No package php71 available.

I also tried installing the centos-release-scl package, but it again says No package centos-release-scl available.

I have a different VPS with CentOS 6.9 and both packages are available on it.

I don’t know what’s different in CentOS 6.10. Could use some help.

My answer:


The remi PHP packages do not have names prefixed with php70- or php71-, but just php-. You cannot mix remi PHP packages of different PHP versions on the same system; if you really need this, use Software Collections PHP packages.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.