Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm wondering what are the advantages of using a MAMP stack instead of Web Sharing provided with Mac natively and MySQL downloaded and installed manually?

I can see how in some cases MAMP can have latest/other versions of apache/mysql/php, but are there any other advantages?

My MCB came with Snow Leopard 10.6.6 with Apache 2.2.15 and PHP 5.3.3 - so fairly recent (although not the latest) versions.
Since they both were installed I saw little reason getting something that has same functionality.

Installing MySQL was dead simple too so that couldn't be the reason.

share|improve this question
4  
I'd be curious to see disadvantages also in the answers. –  g . Mar 18 '11 at 9:52

3 Answers 3

up vote 11 down vote accepted

I'd say unified GUI integration.

MAMP

With MAMP, you've got a single window to manage Apache, PHP, and MySQL. Whereas with the built-in stack, you have to active PHP manually and have another interface for MySQL (with no easy way to turn it on or off)

MAMP settings

share|improve this answer
1  
This. It's all about ease of configuration. I absolutely love MAMP. –  Ben Wyatt Mar 18 '11 at 12:16
    
It's easy. That's all. I love MAMP PRO for its vhost settings and all. –  Purple Tentacle Mar 18 '11 at 19:31

Actually, the #1 advantage to using MAMP is tremendous: Each time you upgrade your system, your environment won't break!

There were a couple of Snow Leopard updates (or maybe it was Leopard to Snow Leopard, I can't remember) that broke Mysql. One was by moving the mysql.socket file. There was another update the broke PHP. In both cases I had to hunt around the Internet for hours to find obscure sites with info on how to fix them.

With MAMP you don't have this problem, you can install all your OS updates, or even wipe the hard drive and install from scratch (provided you make a backup of your MAMP application of course) and still have all your environment just like before. This is the main reason I use MAMP. I've been bitten by these problems too many times.

Disadvantages:

When compiling new stuff, you have to make sure you tell it to use the MAMP files and not the built-in ones. This can sometimes be a problem for some Rails bits (Phusion Passenger gem comes to mind that complains about not finding the apache sources). But depending on how much tinkering you are doing, MAMP is a godsend.

With regards to having stuff duplicated on your drive, the solution is very simple, just delete the builtin installations that bother you, I got rid of /usr/local/Mysql to avoid conflicts. Though I wouldn't recommend deleting apache and PHP.

share|improve this answer
    
+1 for the disadvantages –  Alan Whitelaw Aug 28 '12 at 9:09
    
I haven't been a mac user for very long, but the Mavericks update broke MAMP installations. –  PeterT Jul 3 at 8:45

The disadvantage is that you're installing stuff that you already have installed. This can cause problems when - for example - you want to use PHP using the command-line. This will trigger the built-in PHP version by default instead of the one bundled with MAMP. If these are different the results can be unexpected.

I would recommend using the default OSX versions of both Apache & PHP. After you got it all running the first time you really don't need a control panel or anything that much.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.