Windows: XAMPP vs WampServer vs EasyPHP vs 选择

三年前这里也有一个类似的问题,但是我想把它进一步扩展,包括所有可能的 Windows/Apache/MySQL/PHP 堆栈。

你认为哪种方式最好?

XAMPP 似乎是最受欢迎的,但是我读到了一些关于它的不好的东西,让我怀疑它是否像它的流行所暗示的那样好。例如,我听说他们的默认 PHP 配置是非常不安全的(显然他们的管理应用程序无法在没有这些漏洞被打开的情况下运行)。显然,这对于开发环境来说并不可怕,但是您最终可能会依赖于像 register_globals这样的东西。

我还发现了一些让我担心的事情: 开发人员建议 Vista 用户禁用 UAC 来使用他们的软件!

对我来说,这是个大危险信号。是的,在 Vista 上启用 UAC 运行这样的程序是有问题的,但是禁用 UAC 绝不应该作为一种解决方案提供,特别是对于新手(他们比任何人都更需要 UAC)。这让我很担心。

如果需要,WampServer 显然更容易切换 PHP 或 Apache 的版本。但是它比 XAMPP (例如,没有 FTP 服务器)具有更少的特性。

EasyPHP 是我没有经验的,所以我不能说,但是它显然也很流行。

替代品? 还有很多其他的堆栈 列在维基百科上。这些有推荐的吗?

那么你使用哪一种,为什么你认为它是最好的呢?你还是坚持第一次尝试吗?

我想我们大多数人只是想要一些快速、轻便和最新的东西。

190412 次浏览

I generally install Apache + PHP + MySQL by-hand, not using any package like those you're talking about.

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.

Or, as an alternative, don't use Windows.

If your production servers are running Linux, why not run Linux on your development machine?

And if you don't want to (or cannot) install Linux on your computer, use a Virtual Machine.

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.

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.

The one I've just found and I could absolutely recommend is 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.

They have a wiki where they list all the latest versions of packages. As the time of writing, their newest release is only 4 days old!

Versions in Uniform Server as of today:

  • Apache 2.4.2
  • MySQL 5.5.23-community
  • PHP 5.4.1
  • phpMyAdmin 3.5.0

Versions in XAMPP as of today:

  • Apache 2.2.21
  • MySQL 5.5.16
  • PHP 5.3.8
  • phpMyAdmin 3.4.5

I'm using EasyPHP in making my Thesis about Content Management System. So far, this tool is very good and easy to use.

EasyPHP is very good :

  • 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

WAMP or UWAMP are good choices if you need to test with multiples versions of PHP and Apache.

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) :

LoadModule php4_module "${path}/php4/php4apache2_2.dll"