在CentOS安装PHP5.6 YUM版

配置yum源

追加CentOS 6.5的epel及remi源。

#rpm-Uvhhttp://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
#rpm-Uvhhttp://rpms.famillecollet.com/enterprise/remi-release-6.rpm

以下是CentOS 7.0的源。

#yuminstallepel-release
#rpm-ivhhttp://rpms.famillecollet.com/enterprise/remi-release-7.rpm

使用yum list命令查看可安装的包(Packege)。

#yumlist--enablerepo=remi--enablerepo=remi-PHP56|grepPHP

安装PHP5.6

yum源配置好了,下一步就安装PHP5.6。

#yuminstall--enablerepo=remi--enablerepo=remi-PHP56PHPPHP-opcachePHP-develPHP-mbstringPHP-mcryptPHP-MysqLndPHP-PHPunit-PHPUnitPHP-pecl-xdebugPHP-pecl-xhprof

PHP命令查看版本。

#PHP--version
PHP5.6.0(cli)(built:Sep3201419:51:31)
copyright(c)1997-2014ThePHPGroup
ZendEnginev2.0,c)1998Technologies
withOPcachev7.0.4-dev,171)">c)1999-2014,171)">byXdebug.2.5,171)">c)2002DerickRethans

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native