追加CentOS 7的epel及remi源:
# yum install epel-release
# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
使用yum list命令查看可安装的包(Packege)。
# yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
检查当前安装的PHP包
yum list installed | grep php
如果有安装的PHP包,先删除他们
yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64
yum源配置好了,下一步就安装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-gd php-redis
安装PHP-fpm
yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm
php --version
php-fpm
相关文章
- 03-16PHP5.6 添加sqlserver扩展配置
- 03-16php当数据库update遇到并发,一个小坑
- 03-16"a newer version of unity web player is required but the auto-update failed"
- 03-16PHP 5.6 微信上传临时素材的坑
- 03-16微信上传素材返回 '{"errcode":41005,"errmsg":"media data missing"}',php5.6返回
- 03-16DedeCms V5.6 plus/advancedsearch.php 任意sql语句执行漏洞
- 03-16Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to “*****”
- 03-16php5.4、5.5、5.6高版本中htmlspecialchars兼容性处理
- 03-16PHP build notes - WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 3.0, min: 204, excluded: 3.0).
- 03-16PHP5.6 Dockerfile