使用百胜/ CentOS。
问题是php 5.1已经安装并运行了
百胜更新的PHP
不工作!
我环顾networking的解决scheme,但他们说要做到上述= /
你会想要yum install php53 。 不幸的是,你需要首先删除php (php 5.1,见下文)。
从CentOS 5.6及以上版本起, CentOS中可以使用php53。 它在CentOS 5.5和以前版本中不可用,除非您通过第三方存储库。 这就是为什么许多Serverfault上的答案告诉你使用第三方存储库 – 这不再是必要的。
请注意,php53具有很多依赖性,所以你应该考虑把CentOS升级到最新的CentOS 5.x分支,作为升级的一部分(在撰写本文时是CentOS 5.6)。 这是PHP的一个重大升级,RedHat强制它通过,因为在RHEL5.5之前,它们已经落伍了。
请注意包名是如何命名为php53 ,而php是php 5.1:
$ yum info php53 Available Packages Name : php53 Arch : x86_64 Version : 5.3.3 Release : 1.el5_6.1 Size : 1.3 M Repo : updates Summary : PHP scripting language for creating dynamic web sites URL : http://www.php.net/ License : PHP and LGPLv2 and LGPLv2+ Description: PHP is an HTML-embedded scripting language. PHP attempts to make it : easy for developers to write dynamically generated webpages. PHP also : offers built-in database integration for several commercial and : non-commercial database management systems, so writing a : database-enabled webpage with PHP is fairly simple. The most common : use of PHP coding is probably as a replacement for CGI scripts. : : The php package contains the module which adds support for the PHP : language to Apache HTTP Server. $ yum info php Available Packages Name : php Arch : x86_64 Version : 5.1.6 Release : 27.el5_5.3 Size : 2.3 M Repo : base Summary : The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor) URL : http://www.php.net/ License : The PHP License v3.01 Description: PHP is an HTML-embedded scripting language. PHP attempts to make it : easy for developers to write dynamically generated webpages. PHP also : offers built-in database integration for several commercial and : non-commercial database management systems, so writing a : database-enabled webpage with PHP is fairly simple. The most common : use of PHP coding is probably as a replacement for CGI scripts. : : The php package contains the module which adds support for the PHP : language to Apache HTTP Server.
您需要任何额外的回购升级PHP为PHP 5.3尚未包含在CentOS基地回购。 你可以用完美的primefaces回购为我工作,
wget -q -O - http://www.atomicorp.com/installers/atomic | sh yum upgrade php yum -y remove atomic-release*
这将安装primefaces回购,升级PHP,然后删除primefaces回购(以确保任何未来的系统更新将不会从primefaces安装任何额外的软件包)。