首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >CentOS替代PHP开发机器?

CentOS替代PHP开发机器?
EN

Server Fault用户
提问于 2012-08-25 10:08:23
回答 5查看 1.1K关注 0票数 1

我才刚开始学习Linux。我正在使用CentOS 6.3,我真的很喜欢它。不过,我需要PHP5.4,目前无法用于CentOS。我读过CentOS,因为它本身的特性,它不经常更新包。

您建议使用哪个发行版来替换CentOS,并让我享受最新版本的Apache/PHP?

EN

回答 5

Server Fault用户

回答已采纳

发布于 2012-08-25 10:26:21

现在还不要放弃CentOS!

解决此问题的一个常见过程是访问雷米储存库,以获得当前的packages。

这应该满足您的要求,并保持通过百胜管理的事情。

使用说明:

您将首先需要EPEL存储库。然后是雷米文件。

代码语言:javascript
运行
复制
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,如下所示:

代码语言:javascript
运行
复制
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
票数 4
EN

Server Fault用户

发布于 2012-08-25 10:26:56

您可以通过韦伯塔蒂回购安装PHP5.4:

代码语言:javascript
运行
复制
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.
票数 3
EN

Server Fault用户

发布于 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的好方法。

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/421102

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档