Downgrading PHP 7 to 5.6

Issues related to applications and software problems
Avlino
Posts: 3
Joined: 2017/10/18 22:17:42

Downgrading PHP 7 to 5.6

Postby Avlino » 2017/10/18 22:20:35

Me too facing same issue. When i ran the command $ rpm -qa php\*
php56-php-pecl-zip-1.15.1-1.el6.remi.x86_64
php56-php-xml-5.6.31-1.el6.remi.x86_64
php56-php-pecl-jsonc-1.3.10-1.el6.remi.x86_64
php56-php-pear-1.10.5-2.el6.remi.noarch
php56-runtime-2.3-1.el6.remi.x86_64
php56-php-cli-5.6.31-1.el6.remi.x86_64
php56-2.3-1.el6.remi.x86_64
php56-php-process-5.6.31-1.el6.remi.x86_64
php56-php-common-5.6.31-1.el6.remi.x86_64

This is what is see in the result but i don't see the version when using "php-v" command.

User avatar
TrevorH
Forum Moderator
Posts: 21200
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Downgrading PHP 7 to 5.6

Postby TrevorH » 2017/10/18 23:38:22

What do you see?
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Whoever
Posts: 964
Joined: 2013/09/06 03:12:10

Re: Downgrading PHP 7 to 5.6

Postby Whoever » 2017/10/19 01:40:41

What's the result of the command:

Code: Select all

which php

Avlino
Posts: 3
Joined: 2017/10/18 22:17:42

Re: Downgrading PHP 7 to 5.6

Postby Avlino » 2017/10/19 14:37:03

This is what I see for command "which php".
/usr/bin/which: no php in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/username/bin)

Avlino
Posts: 3
Joined: 2017/10/18 22:17:42

Re: Downgrading PHP 7 to 5.6

Postby Avlino » 2017/10/19 14:46:33

Hi Guys,

I ran the command "source /opt/remi/php56/enable". That fixed this issue.

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

Re: Downgrading PHP 7 to 5.6

Postby remirepo » 2017/10/19 15:13:20

If you want a single PHP version, probably simpler to not install the SCL but use the base package instead....

https://rpms.remirepo.net/wizard/
Remi's Repository - Forum - Blog