Yii2 - Centos 6.* / 7.*下通过yum安装php7

官方出品:鸿宇科技
官方论坛:bbs.hongyuvip.com
官方QQ群:90664526
 
查看 centos 版本
# cat /etc/centos-release 

删除之前的 php 版本
# yum remove php* php-common 

rpm 安装 Php7 相应的 yum源

CentOS/RHEL 7.x:
# rpm -Uvh https://dl.fedoraproject.org/p ... h.rpm 
# rpm -Uvh https://mirror.webtatic.com/yu ... e.rpm

CentOS/RHEL 6.x:
# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm 


yum安装php7
# yum install php70w php70w-opcache

php7可选安装
# yum install php70-php php70-php-pear php70-php-bcmath php70-php-pecl-jsond-devel php70-php-mysqlnd php70-php-gd php70-php-common php70-php-fpm php70-php-intl php70-php-cli php70-php php70-php-xml php70-php-opcache php70-php-pecl-apcu php70-php-pecl-jsond php70-php-pdo php70-php-gmp php70-php-process php70-php-pecl-imagick php70-php-devel php70-php-mbstring php70-php-mcrypt

安装其他插件列表(选装)
php70w
php70w-bcmath
php70w-cli
php70w-common
php70w-dba
php70w-devel
php70w-embedded
php70w-enchant
php70w-fpm
php70w-gd
php70w-imap
php70w-interbase
php70w-intl
php70w-ldap
php70w-mbstring
php70w-mcrypt
php70w-mysql
php70w-mysqlnd
php70w-odbc
php70w-opcache
php70w-pdo
php70w-pdo_dblib
php70w-pear
php70w-pecl-apcu
php70w-pecl-imagick
php70w-pecl-xdebug
php70w-pgsql
php70w-phpdbg
php70w-process
php70w-pspell
php70w-recode
php70w-snmp
php70w-soap
php70w-tidy
php70w-xml
php70w-xmlrpc

重启 Apache
# service httpd restart

 

 

0 个评论

要回复文章请先登录注册