如何在CentOS上安装PHP5.6【本文属于摘抄】
2018-01-17 13:09
615 查看
以下是我已经安装并且在使用的。
简单介绍一下,如何在CentOS上安装PHP5.6。
追加CentOS 6.5的epel及remi源。
简单介绍一下,如何在CentOS上安装PHP5.6。
配置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[/code]
以下是CentOS 7.0的源。# yum install epel-release # rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm[/code]
使用yum list命令查看可安装的包(Packege)。# yum list --enablerepo=remi --enablerepo=remi-php56 | grep phpyum源配置好了,下一步就安装PHP5.6。
安装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
用PHP命令查看版本。
php -v
相关文章推荐
- CentOS 6.5 安装php 5.6方法
- Centos6.5下安装PHP5.6
- 如何实现centos环境中的PHP JSON安装
- 在CentOS安装PHP5.6
- centos6.5卸载原有的php5.3版本并安装php5.6
- Centos下Yum安装PHP5.5,5.6,7.0
- Centos下Yum安装PHP5.5,5.6,7.0
- CentOS7源码编译安装php5.6完整版
- centos6.5源码安装PHP5.6
- centos 如何强制卸载php以及自定义安装
- 在CentOS安装PHP5.6
- centos7.1 yum 安装 MySQL5.7 和 PHP5.6
- CentOS 6.5 + Nginx 1.8.0 + PHP 5.6(with PHP-FPM) 负载均衡源码安装
- Centos下Yum安装PHP5.5,5.6,7.0
- 如何在CentOS 6上通过YUM安装Nginx和PHP-FPM
- 在CentOS安装PHP5.6
- Centos下Yum安装PHP5.5,5.6,7.0
- CentOS 6.5 + Nginx 1.8.0 + PHP 5.6(with PHP-FPM) 负载均衡源码安装 之 (三)Nginx负载均衡配置
- 在CentOS安装PHP5.6
- Centos下Yum安装PHP5.5,5.6