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.
- # yum install epel-release
- # rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
check the enabled RPM package using the yum list command,
- # yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
yum install php5.6.32, copy all commands, and run.
- # yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel
- php-mbstring php-fpm php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug
- php-pecl-xhprof
check php version, using php -v command, as follows.
- [root@VM_219_180_centos ~]# php -v
- PHP 5.6.32 (cli) (built: Oct 25 2017 06:49:52)
- Copyright (c) 1997-2016 The PHP Group
- Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
- with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
- 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.