• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

CentOS7使用yum安装PHP5.6

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

删除旧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 

配置epel源

yum install -y epel-release
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

配置remi源

rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

安装php5.6.x

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-fpm

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

配置开机启动服务

systemctl restart php-fpm
systemctl enable php-frm

查看是否安装成功

ps -ef | grep php
netstat -anp | grep 9000

删除旧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 

配置epel源

yum install -y epel-release
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

配置remi源

rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

安装php5.6.x

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-fpm

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

配置开机启动服务

systemctl restart php-fpm
systemctl enable php-frm

查看是否安装成功

ps -ef | grep php
netstat -anp | grep 9000

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP获取字符串中英文混合长度。发布时间:2022-07-10
下一篇:
php设置hash过期时间发布时间:2022-07-10
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap