您好,欢迎访问一九零五行业门户网

CentOS安装PHP5.6实例

本文主要和大家分享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.rpmrpm -uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
centos 7.0的源
yum install epel-releaserpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
使用yum list命令查看可安装的包(packege)
yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
安装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 --version
在这里安装的版本是php5.6.34,细心的用户可能已经发现zendguardloader变成zend opcahe了。
对从php5.5开始php代码缓存从apc变成了zend opcache了。
如果配置nginx的话,还需要安装php-fpm
yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm
在centos 6 系统上 启动php-fpm服务
service php-fpm start
相关推荐:
centos安装搭建php环境
以上就是centos安装php5.6实例的详细内容。
其它类似信息

推荐信息