Php56 - CentOS - Remy Repo

I just installed php 5.6 in a test field and the normal cli php interpreter does not exist:

$ -> php -v
-bash: php: command not found

$ -> php56 -v
PHP 5.6.13 (cli) (built: Sep  3 2015 13:41:04)    

If I try to do yum install php --enablerepo=remi, then it will try to install php 5.4.

So, it is obvious that php56 - cli the interpreter is, but I always used to simply gain phpvs php56. Is this a new norm or is there another step to install php56 on CentOS (6.7)? Is it as simple as creating a symbolic link?ln -s /usr/bin/php56 /usr/bin/php

Steps to upgrade:

$ -> yum remove php* --enablerepo=remi

$ -> yum install php56* --enablerepo=remi

thanks to Remi for pushing in the right direction, here is what my repo configuration 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

, PHP, . PHP 5.4 Roundcube Postfix Admin, , , , 5.4.

+4
1

php- * - , 1

  • "remi" = > php 5.4
  • "remi-php55" = > php 5.5
  • "remi-php56" = > php 5.6
  • "remi-php70" = > php 7.0 (Release Candidate, prod)

php56- * - , , PHP.

: http://blog.remirepo.net/pages/English-FAQ

, php 5.6

yum --enablerepo=remi-php56 install php-cli (and other needed modules)

( "remi-php56" php 5.6 )

yum-config-manager --enable remi-php56
+12

Source: https://habr.com/ru/post/1609700/


All Articles