Page 1 of 1

Help | Downgrade PHP7 to PHP5.6 in CentOS 7

Posted: Thu Dec 14, 2017 4:20 am
by tcaseng86
Need some help.

Does anyone knows how to downgrade PHP7 to PHP5.6 without breaking roundecubemail functionality.

Currently on running on PHP7.0 and need downgrade to PHP5.6

Search in internet does not help much.

Thanks.

Re: Help | Downgrade PHP7 to PHP5.6 in CentOS 7

Posted: Wed Dec 20, 2017 7:30 pm
by Stesh
Up to php70

Code: Select all

# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
# yum install yum-utils
# yum-config-manager --enable remi-php70
# yum update
Down to php56

Code: Select all

# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
# yum install yum-utils
# yum-config-manager --enable remi-php56
# yum update

Re: Help | Downgrade PHP7 to PHP5.6 in CentOS 7

Posted: Sun Dec 31, 2017 2:16 pm
by Thunderchild
Hello, why do you need to downgrade? I ask because i have the opposite, I need to upgrade for mycloud to work. is it not a good idea to run PHP7?

Re: Help | Downgrade PHP7 to PHP5.6 in CentOS 7

Posted: Sun Dec 31, 2017 4:07 pm
by ScIT
Thunderchild wrote:Hello, why do you need to downgrade? I ask because i have the opposite, I need to upgrade for mycloud to work. is it not a good idea to run PHP7?
it is a really good idea to run php7. php7 has a lot of new security and speed improvements. but this depends on the software you use, if. it is not compatible with php7, so you need still to use a older version or a multiphp envroiment.

Re: Help | Downgrade PHP7 to PHP5.6 in CentOS 7

Posted: Sun Dec 31, 2017 4:18 pm
by Thunderchild
Ah I see, so if i run PHP7 it might not be backward compatible with stuff that only goes up to a certain version. Do the commands above mean that the server will be exclusively PHP7 or would the existing PHP version remain? I think mycloud only wants 5.6 and the current version I have is 5.4.

The only other thing running on the server is wordpress and whatever vesta puts on.
Is the PHP version a linux or vesta thing?