php Windows:XAMPP vs WampServer vs EasyPHP vs 替代方案
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5580342/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Windows: XAMPP vs WampServer vs EasyPHP vs alternative
提问by Chuck Le Butt
There was a similar question asked here three years ago, but I want to open it up further to include all possible Windows/Apache/MySQL/PHP stacks.
三年前这里有一个类似的问题,但我想进一步打开它以包含所有可能的 Windows/Apache/MySQL/PHP 堆栈。
Which to do you think is best?
你认为哪个最好?
XAMPPseems to be the most popular, but I've read several bad things about it that make me wonder if it's as good as its popularity suggests. For example, I've heard that their default PHP configuration is very insecure (and apparently their admin app can't function without these holes being left open). This isn't terrible for a development situation, obviously, but you may end up relying on something like register_globals
.
XAMPP似乎是最受欢迎的,但我读过一些关于它的坏消息,这让我怀疑它是否像它的受欢迎程度所暗示的那样好。例如,我听说他们的默认 PHP 配置非常不安全(显然,如果没有这些漏洞,他们的管理应用程序就无法运行)。显然,这对于开发情况来说并不可怕,但您最终可能会依赖于register_globals
.
I also spotted something else which makes me concerned: The developers recommend that Vista users disable UAC in order to use their software!
我还发现了一些让我担心的事情:开发人员建议 Vista 用户禁用 UAC 以使用他们的软件!
For me that's a big red flag. Yes, there are problems with getting something like this running on Vista with UAC enabled, but disabling UAC should never be offered as a solution, especially for newbs (who need UAC more than anyone). It makes me very concerned.
对我来说,这是一个很大的危险信号。是的,在启用 UAC 的情况下在 Vista 上运行这样的东西是有问题的,但是禁用 UAC 永远不应作为解决方案提供,尤其是对于新手(他们比任何人都更需要 UAC)。这让我非常担心。
WampServerapparently is easier to switch versions of PHP or Apache, if you need to. But it comes with less features than XAMPP (no FTP server, for example).
如果需要,WampServer显然更容易切换 PHP 或 Apache 的版本。但它的功能比 XAMPP 少(例如,没有 FTP 服务器)。
EasyPHPis one that I have no experience of, so I can't say, but it's apparently pretty popular, too.
EasyPHP是一种我没有经验的,所以我不能说,但它显然也很受欢迎。
Alternatives?There a ton of other stacks listed on Wikipedia. Do any of these come recommended?
备择方案?维基百科上列出了大量其他堆栈。有推荐的吗?
So which do you use, and why do you consider it the best? Did you just stick with the first one you tried?
那么你使用哪个,为什么你认为它最好?你只是坚持你尝试的第一个吗?
I imagine most of us just want something quick, light, and up-to-date.
我想我们大多数人只是想要一些快速、轻便和最新的东西。
采纳答案by Pascal MARTIN
I generally install Apache + PHP + MySQL by-hand, not using any package like those you're talking about.
我通常手动安装 Apache + PHP + MySQL,不使用您所说的任何软件包。
It's a bit more work, yes; but knowing how to install and configure your environment is great -- and useful.
这需要更多的工作,是的;但是知道如何安装和配置您的环境很棒——而且很有用。
The first time, you'll need maybe half a day or a day to configure those. But, at least, you'll know how to do so.
第一次,您可能需要半天或一天的时间来配置这些。但是,至少,你会知道怎么做。
And the next times, things will be far more easy, and you'll need less time.
下一次,事情会简单得多,而且你需要的时间更少。
Else, you might want to take a look at Zend Server-- which is another package that bundles Apache + PHP + MySQL.
否则,您可能想看看Zend Server—— 这是另一个捆绑 Apache + PHP + MySQL 的包。
Or, as an alternative, don't use Windows.
或者,作为替代方案,不要使用 Windows。
If your production servers are running Linux, why not run Linux on your development machine?
如果您的生产服务器运行 Linux,为什么不在您的开发机器上运行 Linux?
And if you don't want to (or cannot)install Linux on your computer, use a Virtual Machine.
如果您不想(或不能)在您的计算机上安装 Linux,请使用虚拟机。
回答by hyperknot
After years of using XAMPP finally I've given up, and started looking for alternatives. XAMPP has not received any updates for quite a while and it kept breaking down once every two weeks.
在使用 XAMPP 多年后,我终于放弃了,并开始寻找替代方案。XAMPP 已经有很长一段时间没有收到任何更新了,而且它每两周就会崩溃一次。
The one I've just found and I could absolutely recommend is The Uniform Server
我刚刚找到并且绝对可以推荐的是The Uniform Server
It's really frequently updated, has much more emphasis on security and looks like a much more mature project compared to XAMPP.
与 XAMPP 相比,它确实经常更新,更加强调安全性,并且看起来像是一个更加成熟的项目。
They have a wikiwhere they list all the latest versions of packages. As the time of writing, their newest release is only 4 days old!
他们有一个wiki,其中列出了所有最新版本的软件包。在撰写本文时,他们的最新版本仅发布 4 天!
Versions in Uniform Server as of today:
截至今天,统一服务器中的版本:
- Apache 2.4.2
- MySQL 5.5.23-community
- PHP 5.4.1
- phpMyAdmin 3.5.0
- 阿帕奇 2.4.2
- MySQL 5.5.23-社区
- PHP 5.4.1
- phpMyAdmin 3.5.0
Versions in XAMPP as of today:
截至今天,XAMPP 中的版本:
- Apache 2.2.21
- MySQL 5.5.16
- PHP 5.3.8
- phpMyAdmin 3.4.5
- 阿帕奇 2.2.21
- MySQL 5.5.16
- PHP 5.3.8
- phpMyAdmin 3.4.5
回答by Vince
EasyPHP is very good :
EasyPHP 非常好:
- lightweight & portable : no windows service (like wamp)
- easy to configure (all configuration files in the same folder : httpd.conf, php.ini & my.ini)
- auto restarts apache when you edit httpd.conf
- 轻巧便携:没有 Windows 服务(如 wamp)
- 易于配置(同一文件夹中的所有配置文件:httpd.conf、php.ini 和 my.ini)
- 编辑 httpd.conf 时自动重启 apache
WAMP or UWAMP are good choices if you need to test with multiples versions of PHP and Apache.
如果您需要使用多个版本的 PHP 和 Apache 进行测试,WAMP 或 UWAMP 是不错的选择。
But you can also use multiple versions of PHP with EasyPHP (by downloading the PHP version you need on php.net, and loading this version by editing httpd.conf) :
但是您也可以将多个版本的 PHP 与 EasyPHP 一起使用(通过在 php.net 上下载您需要的 PHP 版本,并通过编辑 httpd.conf 加载此版本):
LoadModule php4_module "${path}/php4/php4apache2_2.dll"
回答by Your Common Sense
I won't make such a big deal from this question.
It's not like choosing your new wife or car.
I'd never run any of these on a production server, so, to run just some quick tests any of them are equally good.
我不会从这个问题上做出这么大的事情。
这不像选择你的新妻子或汽车。
我从来没有在生产服务器上运行过任何这些,所以,只运行一些快速测试,它们中的任何一个都同样好。
回答by Joey
I'm using EasyPHP in making my Thesis about Content Management System. So far, this tool is very good and easy to use.
我正在使用 EasyPHP 制作关于内容管理系统的论文。到目前为止,这个工具非常好并且易于使用。