您的位置:首页 > 运维架构 > Linux

Centos6.5下安装PHP5.6

2016-12-02 09:08 302 查看
继上一篇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) (built: Sep  3 2014 19:51:31)

PHP5.6安装成功!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: