upgrading php 5.6.3 to 5.6.4 or higher (branch 5.6)

ぃ、小莉子 提交于 2019-12-11 07:28:09

问题


I have a Centos 7, with a php 5.6.3 installed on it.

php -v
PHP 5.6.30 (cli) (built: Jan 19 2017 07:08:58)

Now I want to install an open source project that requires minimum php version 5.6.4.

(*) PHP 5.6.0 - 5.6.3 are not compatible caused by a session bug

How can I do the upgrade? I tried many howto's found with google, but none of them work. For example: https://www.centos.org/forums/viewtopic.php?t=52586 Of course I have the latest (I think) repos:

package webtatic-release-7-3.noarch is already installed

package epel-release-7-9.noarch already installed and latest version

When I run

yum update php

I get:

...
Package(s) php available, but not installed.
No packages marked for update

or:

yum -y upgrade php*

I get:

Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
 * base: mirrors.hostingfuze.net
 * extras: centos.mirrors.telekom.ro
 * ius: ftp.astral.ro
 * remi-safe: mirrors.neterra.net
 * updates: centos.mirrors.telekom.ro
No packages marked for update

So basically my question is: how can I install the PHP 5.6.4 or higher on my system that already has PHP 5.6.3


回答1:


As seen in the changelog, 5.6.30 is (as of today) the newest version of the 5.6 branch, 5.6.4 came out December 2014.




回答2:


Try this:

yum install -y http://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/ius-release-1.0-14.ius.centos7.noarch.rpm
yum -y update
yum -y install php70u php70u-pdo php70u-mysqlnd php70u-opcache php70u-xml php70u-mcrypt php70u-gd php70u-devel php70u-mysql php70u-intl php70u-mbstring php70u-bcmath php70u-json php70u-iconv

or check this link: https://stackoverflow.com/a/40406823/7804966



来源:https://stackoverflow.com/questions/43174053/upgrading-php-5-6-3-to-5-6-4-or-higher-branch-5-6

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!