0

I am coming from the debian world and I struggle for a while now understand Centos and to install php7.3 on Centos 7.

Tutorials like this https://tecadmin.net/install-php7-on-centos7/ tell me to install some remi release. What is "Remi's RPM repository" and why is php7.3 not in the official package sources?

[root@centos7 ~]# uname -a
Linux centos7 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • The only "official" release of PHP 7 from RedHat/CentOS is offered through the Software Collections repo, which can be added to a CentOS machine with yum install centos-release-scl from the extras repository. This does not replace the system provided components, but side installs each different version with special environment variables to be able to use. – GracefulRestart May 9 at 18:20
1

RHEL/CentOS intends to prioritize stable versions of packages before new versions of packages. This strategy backfires with PHP since the latest version in the repository is 5.4, which is EOL.

It's common practice to install a 3rd-party repository for PHP, however I would recommend Webtatic instead of Remi.

  • I second not installing Remi. – Rui F Ribeiro May 9 at 17:13
  • As I am totally new to Centos/RHL-Branch. Why not Remi? EDIT: Looked at Webtatic, they seem to only have 7.1 and 7.2, I need 7.3 by customer request – user6329530 May 9 at 20:11
  • I prefer Webtatic because it has a wider variety of PHP modules right there in the repository. Remi doesn't have nearly as many. Some can still be installed through pear or pecl, but I've had far more trouble with that than just installing them from Webtatic's repository. I had forgotten that Webtatic still doesn't support PHP 7.3, so you will probably have to use Remi. Personally, I've just been using 7.2 when I'm on CentOS with the intention of installing 7.3 once Webtatic has it. – Brad Johnson May 9 at 22:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.