标签:ring head blog deb mcrypt rem span enable yum源
安装php 5.6
安装yum源及插件
[root@10 ~]# rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
Retrieving http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
Preparing... ########################################### [100%]
package epel-release-6-8.noarch is already installed
[root@10 ~]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Retrieving http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
warning: /var/tmp/rpm-tmp.LINV5a: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Preparing... ########################################### [100%]
1:remi-release ########################################### [100%]
查看是否有可安装的php
[root@10 ~]# yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
安装php
[root@10 ~]# yum install --enablerepo=remi --enablerepo=remi-php56 php php-mysql php-opcache
php-pecl-apcu php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit
php-pecl-xdebug php-pecl-xhprof php-pdo php-pear php-fpm php-cli php-xml php-bcmath
php-process php-gd php-common
查看php版本
[root@10 ~]# php -v PHP 5.6.31 (cli) (built: Jul 6 2017 08:16:47) 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
标签:ring head blog deb mcrypt rem span enable yum源
原文地址:http://www.cnblogs.com/wanglan/p/7272983.html