macos Mac OS X 10.6.2 (Snow Leopard) 上的 XAMPP 或 MAMP

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

XAMPP or MAMP on Mac OS X 10.6.2 (Snow Leopard)

macosxamppmamp

提问by Steve

I just bought a new MacBook Pro which comes with Snow Leopard 10.6.2 (Mac OS X 10.6.2). I am used to using XAMPP as my local development server on XP. Since Mac OS X is based on Unix, I was thinking on activating/installing all the necessary stuff as I would normally do on Linux. However, I am not quite ready to be playing around with the system at this point so having an external package would be a nice temporary solution I think.

我刚买了一台带有 Snow Leopard 10.6.2 (Mac OS X 10.6.2) 的新 MacBook Pro。我习惯于在 XP 上使用 XAMPP 作为我的本地开发服务器。由于 Mac OS X 基于 Unix,我正在考虑激活/安装所有必要的东西,就像我通常在 Linux 上所做的那样。但是,此时我还没有准备好使用系统,因此我认为拥有外部软件包将是一个不错的临时解决方案。

The question is whether I should go with MAMP or XAMPP. Does anybody have any suggestions? The Pro and Cons I suppose. As far as I know, Mac OS X comes with Apache2 and PHP5. Would MAMP or XAMPP modify the existing Apache and PHP installation? Any comments on how I should proceed?

问题是我应该使用 MAMP 还是 XAMPP。有人有什么建议吗?我想的利弊。据我所知,Mac OS X 自带 Apache2 和 PHP5。MAMP 或 XAMPP 会修改现有的 Apache 和 PHP 安装吗?关于我应该如何进行的任何评论?

PS: Eventually I would use the default installation of Apache and PHP, and install a binary package of MySQL but time for development is an essence and I don't have time to familiarize myself with Mac OS X.

PS:最终我会使用Apache和PHP的默认安装,并安装一个MySQL的二进制包,但开发时间很重要,我没有时间熟悉Mac OS X。

采纳答案by Matt

XAMPP and MAMP are both quite similar. Neither touch your default OS X Apache/PHP! You can just try them both out and remove them afterwards by just deleting their folders. In the end they do exactly the same.

XAMPP 和 MAMP 都非常相似。既不要碰你默认的 OS X Apache/PHP!您可以尝试它们,然后通过删除它们的文件夹来删除它们。最后他们做的完全一样。

XAMPP gets updated more regularly and is generally more up to date. Also XAMPP has more extensions built-in.

XAMPP 会更定期地更新,并且通常是最新的。XAMPP 还内置了更多扩展。

On the other hand MAMP looks a little more mac-like and has a Dashboard Widget. But for a development system that doesn't count much. Unlike XAMPP, MAMP works without administrator privileges.

另一方面,MAMP 看起来更像 mac,并且有一个 Dashboard Widget。但是对于一个并不重要的开发系统。与 XAMPP 不同,MAMP 无需管理员权限即可工作。

I went with XAMPP in the end because I needed the dba extension.

我最终选择了 XAMPP,因为我需要 dba 扩展。

回答by Bennett Von Bennett

after using both to develop some Wordpress sites locally on my mac I chose to go with MAMP.

在我的 Mac 上使用两者在本地开发一些 Wordpress 网站后,我选择使用 MAMP。

The main problem (only problem actually) I had with XAMPP was that it had issues on OS X with file and folder permissions. doing something as simple as installing new Themes using the Wordpress online interface proved nearly impossible - in the end it required changing permissions on some of the Apache configuration files in the XAMPP dir. - even then it didn't entirely work.

我在 XAMPP 上遇到的主要问题(实际上唯一的问题)是它在 OS X 上的文件和文件夹权限问题。事实证明,使用 Wordpress 在线界面安装新主题这样简单的事情几乎是不可能的——最终它需要更改 XAMPP 目录中某些 Apache 配置文件的权限。- 即便如此,它也没有完全奏效。

I won't go into details - but suffice it to say I ended up thinking "why bother?" and just went back to MAMP.

我不会详细介绍 - 但足以说明我最终在想“为什么要麻烦?” 刚刚回到MAMP。

that's just my experience mind you - but it is worth noting that it's so common that there are several sites/blog posts whose sole topic is how to fix this issue. just google "XAMPP Wordpress theme install problem" or something like that and you'll see what I mean.

请注意,这只是我的经验 - 但值得注意的是,它是如此普遍,以至于有几个网站/博客文章的唯一主题是如何解决这个问题。只需谷歌“XAMPP Wordpress 主题安装问题”或类似的东西,你就会明白我的意思。

回答by Abhic

I am a new developer and run 10.6.3 as well. I found MAMP Pro to be a better option than anything else. The personal web server that comes with Mac is really handy but maintaining the modules via macports was a pain.

我是一名新开发人员,也运行 10.6.3。我发现 MAMP Pro 是比其他任何东西都更好的选择。Mac 附带的个人 Web 服务器非常方便,但通过 macports 维护模块很痛苦。

Versus XAMP, MAMP Pro works really well cause it lets you tweak the modules as you wish and edit the myself/postfix/httpd configs easily. The two biggest reasons I love it is cause of the easy dyndns integration.

与 XAMP 相比,MAMP Pro 工作得非常好,因为它可以让您根据需要调整模块并轻松编辑自己/postfix/httpd 配置。我喜欢它的两个最大原因是易于 dyndns 集成

As for the port number, you can just edit it to 80 and not have to enter it manually each time when you browse to your local dev site.

至于端口号,你可以直接编辑为80,不用每次浏览本地开发站点时都手动输入。

回答by mishimasan

XAMPP has some awful issues on OS X with file permissions and it's been a complete nightmare. I strongly suggest that if you're going to be using Wordpress on the localhost, that you either know your stuff before installing XAMPP, or just go with something else that won't give you those problems; presumably MAMP, which is what I'm about to install.

XAMPP 在 OS X 上的文件权限方面存在一些可怕的问题,这简直是一场噩梦。我强烈建议,如果您打算在本地主机上使用 Wordpress,那么您要么在安装 XAMPP 之前了解您的内容,要么使用其他不会给您带来这些问题的东西;大概是 MAMP,这就是我要安装的。

回答by mishimasan

Personnally, i think that MAMP is easier to use. Especially if you want to define the folder where you want to run your local web sites. By default, in XAMPP your local web sites are in the APPLICATIONS folder and this is not a good solution. Moreless there is no password by default for MySQL in XAMPP. In MAMP it's really easy to change the directory that you want for your weblocal web sites. (just go to preferences). I tried to do that in XAMMP but there was access problems to httpd.conf of the apache web server.

就我个人而言,我认为 MAMP 更易于使用。特别是如果您想定义要在其中运行本地网站的文件夹。默认情况下,在 XAMPP 中,您的本地网站位于 APPLICATIONS 文件夹中,这不是一个好的解决方案。此外,XAMPP 中的 MySQL 默认没有密码。在 MAMP 中,更改 weblocal 网站所需的目录非常容易。(只需转到首选项)。我尝试在 XAMMP 中执行此操作,但是对 apache Web 服务器的 httpd.conf 存在访问问题。

回答by mini

Neither if you do WordPress development. ServerPress has the most options in a dead simple user interface. http://www.serverpress.com/products/desktopserver/#compare

如果您进行 WordPress 开发,也不会。ServerPress 在非常简单的用户界面中拥有最多的选项。http://www.serverpress.com/products/desktopserver/#compare