配置yum源
yum install epel-release
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
查看可安装的包
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
如果要用nainx的话
yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm
本文详细介绍如何通过YUM源配置并安装PHP5.6及其相关组件,包括OPcache、MBString等,并提供了使用PHP命令验证版本的方法。此外,还介绍了如何为Nginx安装PHP-FPM,以便于进行更高效的Web服务。
663

被折叠的 条评论
为什么被折叠?



