Home  >  Q&A  >  body text

apache - Linux yum install php 为什么版本是5.4.x的而不是最新的

使用的是CentOS,命令:

yum install php

结果弹出来的版本是 5.4.x,这个版本有很多问题。现在最新稳定版本是 PHP 5.5.x
为什么他弹出的是这样一个老版本,是不是要安装最新版本的PHP,就得自己手动安装?
还是说 yum install php 之后,再手动update 升级?
发现安装Apache也是这样,不是最新稳定版本。

PHPzPHPz2733 days ago637

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-25 09:03:13

    First of all, it cannot be said that there is a problem with 5.4. 5.4 is still supported, and bugs are constantly being fixed. 5.5 is a different branch with some new features and the same regular bug fixes as 5.4.

    The PHP version you get is compiled for your operating system and placed in the repo. If no one updates this repo, the latest version will not be downloaded. Many times when a system is released, these files are no longer updated after a while and stay at the old version. At this time you can get the source code yourself and compile and run it.

    reply
    0
  • 为情所困

    为情所困2017-04-25 09:03:13

    The latest version in your system software source is 5.4. If you use the command to install it, you will install 5.4

    reply
    0
  • Cancelreply