CentOS 8 : Install other PHP version

Issues related to applications and software problems and general support
Post Reply
Adrien.D
Posts: 23
Joined: 2016/10/26 06:57:18

CentOS 8 : Install other PHP version

Post by Adrien.D » 2019/10/18 09:09:21

Hello,
On CentOS7, it's possible to install an other version of PHP with SCL.

How to do that with CentOS 8 ?

SCL not available, or i don't find any information about it

Thanks

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 8 : Install other PHP version

Post by TrevorH » 2019/10/18 11:03:48

On CentOS 8 php is supplied as modules and you can pick which version you install... well, at least theoretically you can. At the moment there is only one version, 7.2 but I believe that in RHEL 8.1 they will add php 7.3 and you will be able to pick which one you want. You can't install more than one at a time.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

BShT
Posts: 584
Joined: 2019/10/09 12:31:40

Re: CentOS 8 : Install other PHP version

Post by BShT » 2019/10/18 12:08:18

take care of /etc/httpd/conf.modules.d/00-mpm.conf if you want do use mod_php

php-fpm is default now

User avatar
remirepo
Posts: 447
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: CentOS 8 : Install other PHP version

Post by remirepo » 2019/10/18 13:27:41

> How to do that with CentOS 8 ?

For multiple versions, you have to run multiple containers, 1 per version, each one running php-fpm installed from the desired module stream.

Or use an alternative repo which still provides SCL.
Remi's Repository - Forum - Blog

Adrien.D
Posts: 23
Joined: 2016/10/26 06:57:18

Re: CentOS 8 : Install other PHP version

Post by Adrien.D » 2019/10/18 19:21:28

Okay, i will see on the 8.1 version when php 7.3 is available :P

Post Reply