1. 程式人生 > >Centos6.5下安裝PHP5.6

Centos6.5下安裝PHP5.6

繼上一篇Centos6.5下配置LAMP環境後,計劃在此環境上搭建Testlink 測試管理系統,選擇了版本比較穩定的testlink1.9.14 ,安裝過程中提示LAMP環境中的php 版本為5.3,但Testlink1.9.14 要求PHP最低版本為 5.4 ,只能更新PHP版本啊

1、解除安裝原來安裝的PHP5.3

#yum -y remove php*

2、配置yum源

追加CentOS 6.5的epel及remi源。

# rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm

# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

以下是Centos7.0的源

# yum install epel-release

# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

3、安裝PHP5.6

# yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof


4、PHP檢視版本

php--version

PHP 5.6.0 (cli) (builtSep  3 2014 19:51:31)

PHP5.6安裝成功!