W3Schools Learner's Blog

W3Schools Programming knowledge summary website

div

12/13/2017

how to install php5.6.32 with yum on centos 7

how to install php5.6.32 with yum on centos 7
It is very simple to install the php5.6.32 environment in the CentOS 7 system using the yum source. 
  1. # yum install epel-release
  2. # rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
check the enabled RPM package using the yum list command,
  1. # yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
yum install php5.6.32, copy all commands, and run.
  1. # yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel 
  2. php-mbstring php-fpm  php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug 
  3. php-pecl-xhprof
check php version, using php -v command, as follows.
  1. [root@VM_219_180_centos ~]# php -v
  2. PHP 5.6.32 (cli) (built: Oct 25 2017 06:49:52) 
  3. Copyright (c) 1997-2016 The PHP Group
  4. Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
  5.     with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
  6.     with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
          complete!

          No comments:

          Post a Comment

          Note: only a member of this blog may post a comment.