您好,欢迎来到客趣旅游网。
搜索
您的当前位置:首页centos下如何安装php5.6

centos下如何安装php5.6

来源:客趣旅游网

centos下安装php5.6的方法:首先查看系统中已有的php版本;然后执行【yum -y remove】命令进行删除;接着添加yum源;最后执行【yum install -y remi-php56】命令进行安装即可。

首先查找系统中已有的版本

(推荐教程:php图文教程)

yum list installed | grep php

如果存在已有的php版本 ,执行下面的命令删除

yum -y remove php-common

然后以centos6系统为例,添加CentOS 6.x的yum源

(视频教程推荐:php视频教程)

rpm -Uvh http://download.Fedoraproject.org/pub/epel/6/x86_/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

最后使用yum命令安装 PHP,安装5.6版本为remi-php56,安装5.5版本为remi-php55

yum install -y --enablerepo=remi,remi-php56 php php-opcache php-pecl-apcu php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-pdo php-pear php-fpm php-cli php-xml php-bcmath php-process php-gd php-commo

Copyright © 2019- kqyc.cn 版权所有 赣ICP备2024042808号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务