【centos】php5.4升级到php5.6

来源:互联网 发布:sql两表关联查询 编辑:程序博客网 时间:2024/05/20 05:11

引用

centos7 升级 php 5.4 -> php5.6标签: centosphpphp52017-04-05 17:34 186人阅读 评论(0) 收藏 举报 分类: PHP(30)  centos7 自带php5.4,升级到php5.6的方法: https://webtatic.com/packages/php56/CentOS/RHEL 7.x:rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmrpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpmCentOS/RHEL 6.x:rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpmrpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm然后执行下面的:3.执行下面的命令删除php  yum remove php-common  然后像安装那样问你是否继续的,输入yes即可  接着继续安装:yum install php56w-fpm php56w-opcache当然,请顺便安装必要的扩展:yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring好了,假如你像我一样还有postgresql的话,那么也顺便安装:yum install php56w-pgsql执行完毕之后,重启php-fpm、nginxsystemctl restart php-fpm nginx
原创粉丝点击