centos下,yum安裝php5.6

追加CentOS 6.5的epel及remi源。php

# 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.rpmhtml

如下是CentOS 7.0的源。
# yum install epel-release
# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpmmysql

安裝
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-xhproflinux

yum install --enablerepo=remi --enablerepo=remi-php56 php-fpmsql

其餘參考:http://www.centoscn.com/image-text/install/2016/0130/6725.htmlcentos

相關文章
相關標籤/搜索