1 (edited by 2arnkk 2015-11-30 13:02:14)

Topic: /opt/remi/php56/enable

Hi Remi,

Thanks for a great repo.

After installing php56 on CentOS 7, I want to alias/symlink php to php56.

I see there is a file /opt/remi/php56/enable which does this.

One way to use it is:

source /opt/remi/php56/enable

This won't stick through sessions though.

What do you recommend?

Re: /opt/remi/php56/enable

Use the already present symlink /usr/bin/php56
(PHP SCL doesn't really need to be enabled)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: /opt/remi/php56/enable

Yes symlink for php56 already works.

I want to symlink just 'php' - easier as other scripts etc depend on this.

I can easily do it myself, I just saw the /opt/remi/php56/enable file and wondered what it was for.

Re: /opt/remi/php56/enable

if you don't have /usr/bin/php, and onoly want a single version of PHP, why do you have installed php56 Software Collection ?

It seems simpler to use standard packages.

See: http://blog.remirepo.net/pages/English-FAQ#scl

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: /opt/remi/php56/enable

Yes I read the FAQ, but I couldn't get PHP 5.6 installed.

Every time I try yum install php, only 5.4 get's installed.

Which Remi repos do I have to enable to install 5.6 as the standard package?

Re: /opt/remi/php56/enable

> source /opt/remi/php56/enable

This can be added too  $HOME/.bash_profile or some /etc/profile.d/php56.sh script

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: /opt/remi/php56/enable

> Which Remi repos do I have to enable to install 5.6 as the standard package?

Read http://blog.remirepo.net/post/2015/11/2 … -5.6.16-en

yum-config-manager --enable remi-php56
yum update
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: /opt/remi/php56/enable

OK great thanks mate.