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安装成功!
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安装成功!
相关文章推荐
- Centos 6.5下编译安装php5.6
- CentOS 6.5下PHP 5.6编译安装
- CentOS-6.5下编译安装LNMP环境【nginx1.8.1、mysql5.5.43、php 5.6】
- centos 7 min 编译安装php5.6+nginx1.7.5 笔记
- 生产环境Centos LNMP编译安装nginx-1.6 MySQL-5.6 php-5.5
- CentOS 5.6服务器配置YUM安装Apache+php+Mysql+phpmyadmin
- centos5.6安装php mysql apache
- centOS5.6 下的nginx+mysql+php+php-fpm安装与配置
- 在centos 5.6版本下安装php+mysql+apache
- CentOS 5.6服务器配置YUM安装Apache+php+Mysql+phpmyadmin
- 64位 CentOS 5.6 中 Nginx + php + mysql 的编译安装
- [shell]CentOS 5.6安装web服务及相关软件(php 5.3, MySQL Server, memcache, spawn-fcgi, nginx, coreseek)
- CentOS 6.5下二进制安装 MySQL 5.6
- CentOS 5.6服务器配置YUM安装Apache+php+Mysql+phpmyadmin
- CentOS6.5下安装apache+svn+php+svnadmin
- 64位centos6.5下安装php5.4.31的编译选项与错误处理
- CentOS5.6(64bit)下编译安装Nginx1.2.0、Percona-Server-5.1.61、PHP5.3.10
- CentOS6.5下安装Redis2.8.6和phpredis2.2.4扩展
- [转]centos5.6安装php mysql apache
- CentOS5.6安装Apache Mysql PHP笔记