php LAMP 中的 XAMPP 和 WAMP,哪个最好?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/105546/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 21:28:06  来源:igfitidea点击:

XAMPP and WAMP in the LAMP, what's the best?

phpmysqlapache

提问by Abhishek Mishra

We have got loads of options for php + MySQL + Apachecombo... Which is the best pack among these ?

我们有很多php + MySQL + Apache组合选项......其中哪个是最好的组合?

Lets confine our ideas to WAMP vs XAMPP, is there a better option to go for?

让我们将我们的想法限制在WAMP vs XAMPP,有没有更好的选择?

I created an online programming contest web app called CodeFireon XAMPP, later I had to switch to WAMP, where none of the phpscripts worked properly... what standard should I follow?

我创建了一个叫做在线编程竞赛的Web应用程序CodeFireXAMPP,后来我不得不切换到WAMP,这里没有任何的php脚本工作正常...我应该遵循什么样的标准?

采纳答案by cori

I like XAMPP, personally. I have an install running on a thumbdrive that I carry around that's pretty much my development environment for LAMP web dev on any machine I happen to be at (I'm mostly on Windows client machines).

我个人喜欢 XAMPP。我有一个安装在我随身携带的拇指驱动器上运行,这几乎是我在我碰巧所在的任何机器上的 LAMP Web 开发开发环境(我主要在 Windows 客户端机器上)。

Small, fully-functional, and stable - works really well for my needs.

小巧、功能齐全且稳定 - 非常适合我的需求。

回答by cori

I like WAMPthe best, real simple interface and I can easily switch between different versions of PHP 5.26/4.44/4.3.9, MySQL 5/4, and Apache 2/1.3

我喜欢WAMP最好的,真正简单的界面,我可以轻松地在不同版本的 PHP 5.26/4.44/4.3.9、MySQL 5/4 和 Apache 2/1.3 之间切换

回答by StuffMaster

XAMPP is good for development and portability, that's for sure.

XAMPP 有利于开发和可移植性,这是肯定的。

LAMP is best for performance and security (and ubiquity).

LAMP 最适合性能和安全性(和普遍性)。

WAMP...well, that's for if you don't want to learn Linux, I guess.

WAMP...好吧,如果你不想学习 Linux,我猜。

回答by Loun

I tried XAMPP and gave up...I faced an issue with backslashes(widows uses forward slashes)..due to this none of my scripts could save any files to folders because the path would be like dir1\dir2\folder/image_folder/image.jpg...I tried WAMP it worked like a charm..it threw no errors and saved the image files as intented...so..I guess I will stick to WAMP...I would appreciate it if someone could tell me how the "madslashes" issue is fixed on XAMPP..I googled furiously..without any luck..thanks

我尝试了 XAMPP 并放弃了……我遇到了反斜杠问题(寡妇使用正斜杠)……因此,我的脚本都无法将任何文件保存到文件夹中,因为路径类似于 dir1\dir2\folder/image_folder/ image.jpg...我试过WAMP它就像一个魅力...它没有抛出任何错误并按意图保存图像文件...所以...我想我会坚持WAMP...如果有人可以,我将不胜感激告诉我如何在 XAMPP 上解决“madslashes”问题..我疯狂地用谷歌搜索..没有任何运气..谢谢

回答by Craig

LAMP seems to be the most common of those options, so on a strictly find solutions to your problems I would recommend LAMP.

LAMP 似乎是这些选项中最常见的,因此如果要严格找到问题的解决方案,我会推荐 LAMP。

It really comes down to whats going to be the best option for you though. If you don't know Linux than maybe running a WAMP setup will make the process easier to maintain. Try and factor in your experiance and the maintenance required on the server into your decision.

不过,这真的归结为最适合您的选择。如果您不了解 Linux,那么运行 WAMP 设置可能会使该过程更易于维护。尝试将您的经验和服务器所需的维护纳入您的决定中。

Personally I run a LAMP server for my purposes, as I know enough Linux to maintain it and it ended up being the best solution for my purposes.

我个人为我的目的运行 LAMP 服务器,因为我知道足够的 Linux 来维护它,它最终成为我目的的最佳解决方案。

回答by ethyreal

Xampp is a self contained package for developments.

Xampp 是一个独立的开发包。

the latter two would be full production stacks installed on your server either gnu/linux or windows server 2k*

后两个将是安装在您的服务器上的完整生产堆栈,无论是 gnu/linux 还是 windows server 2k*

so if you want a one program install that can be removed go with xampp for development, otherwise you can fully install eash of them on your system. the latter will also (obviously) produce greater performance.

因此,如果您想要一个可以删除的程序安装,请使用 xampp 进行开发,否则您可以在系统上完全安装它们。后者也将(显然)产生更好的性能。

as far as standards go, lamp is more industry wide, the windows servers tend to run IIS instead of apache, though it doesn't mean they can't. thier are books on php over windows but i think easy of use and wide adaptation is in the lamp camp.

就标准而言,Lamp 更适用于整个行业,Windows 服务器倾向于运行 IIS 而不是 apache,但这并不意味着它们不能。他们是在 windows 上的 php 书籍,但我认为易于使用和广泛的适应是在灯阵营中。

回答by Jose Vega

I've been using WAMP for a while now, and from what I've gathered its pretty reliable. The installation is a breeze, and user interface is pretty friendly.

我已经使用 WAMP 一段时间了,据我所知,它非常可靠。安装轻而易举,用户界面非常友好。

回答by pkaeding

It all depends on what you are comfortable administering. Any of these setups can be stable, robust, and secure if its properly set up.

这一切都取决于您可以轻松地管理什么。如果正确设置,这些设置中的任何一个都可以是稳定、健壮和安全的。

回答by adonm

回答by Populus

Using Wamp, the new version has xdebug pre-installed, which is nice for me since the first time I tried to install xdebug, it took me ages <_<

使用Wamp,新版本预装了xdebug,这对我来说很好,因为我第一次尝试安装xdebug,花了我很长时间<_<

Haven't tried Xampp, but just seeing that it doesn't have xdebug bundled I backed off from trying :P

还没有尝试过 Xampp,但只是看到它没有捆绑 xdebug,我就放弃了尝试:P