php - php56 - CentOS - Remi Repo -
i installed php 5.6 on test box, , normal cli php interpreter doesn't appear exist:
$ -> php -v -bash: php: command not found $ -> php56 -v php 5.6.13 (cli) (built: sep 3 2015 13:41:04) if try yum install php --enablerepo=remi tries install php 5.4.
so it's obvious php56 cli interpreter, i've been used typing php vs php56. new norm, or there step installing php56 on centos (6.7)? simple creating symlink? ln -s /usr/bin/php56 /usr/bin/php
steps upgrade:
$ -> yum remove php* --enablerepo=remi $ -> yum install php56* --enablerepo=remi thx remi push in right direction, here's repo config looks like:
[upstream_remi54] name=remi - centos - $releasever/$arch baseurl=http://mirrors.mediatemple.net/remi/enterprise/$releasever/remi/$basearch/ enabled=0 gpgcheck=1 gpgkey=http://rpms.famillecollet.com/rpm-gpg-key-remi [upstream_remi56] name=remi - centos - $releasever/$arch baseurl=http://mirrors.mediatemple.net/remi/enterprise/$releasever/php56/$basearch/ enabled=0 gpgcheck=1 gpgkey=http://rpms.famillecollet.com/rpm-gpg-key-remi this works if want replace existing php, vs running versions in parallel. have keep php 5.4 in place roundcube , postfix admin, of modules necessary work have not yet been ported, server has stay 5.4 now.
php-* base packages, 1 repository per version
- "remi" => php 5.4
- "remi-php55" => php 5.5
- "remi-php56" => php 5.6
- "remi-php70" => php 7.0 (release candidate, not ready prod)
php56-* packages software collections, parallel installation allowing run multiple versions of php.
see : http://blog.remirepo.net/pages/english-faq
so, if want single php version 5.6
yum --enablerepo=remi-php56 install php-cli (and other needed modules) and can enable repository future update (as "remi-php56" safe , provides php 5.6 , extension)
yum-config-manager --enable remi-php56
Comments
Post a Comment