我才刚开始学习Linux。我正在使用CentOS 6.3,我真的很喜欢它。不过,我需要PHP5.4,目前无法用于CentOS。我读过CentOS,因为它本身的特性,它不经常更新包。
您建议使用哪个发行版来替换CentOS,并让我享受最新版本的Apache/PHP?
发布于 2012-08-25 10:26:21
现在还不要放弃CentOS!
解决此问题的一个常见过程是访问雷米储存库,以获得当前的packages。
这应该满足您的要求,并保持通过百胜管理的事情。
使用说明:
您将首先需要EPEL存储库。然后是雷米文件。
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
这些都是为了得到回购。对于PHP,如下所示:
yum --enablerepo=remi,remi-test install nginx php php-fpm php-common php-pear php-pdo php-mysql php-pgsql php-pecl-memcache php-gd php-mbstring php-mcrypt php-xml
发布于 2012-08-25 10:26:56
您可以通过韦伯塔蒂回购安装PHP5.4:
Name : php54w
Arch : x86_64
Version : 5.4.6
Release : 1.w6
Size : 1.2 M
Repo : webtatic
Summary : PHP scripting language for creating dynamic web sites
URL : http://www.php.net/
License : PHP
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 php54w package contains the module which adds support for the PHP
: language to Apache HTTP Server.
发布于 2012-09-01 15:19:46
我有最好的结果在Centos 6使用EPEL与IUS存储库。
http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/ius-版本-1.0-10.ius.el6.noarch.rpm http://fedora.mirror.nexicom.net/epel/6/i386/epel-release-6-7.noarch.rpm
# yum search php54
组合存储库提供了非常低版本冲突的优秀包访问权限。这也是获得nginx和php的好方法。
https://serverfault.com/questions/421102
复制相似问题