I’m writing a full series on setting up your Mac for Magnto ecommerce development, I should probably start with the first step – installing MAMP on a Leopard Mac, even if it’s a quite basic and hopefully self evident.
Maybe one of the less obvious things is that you do not need MAMP pro to get virtual hosting set up in Apache on a Mac, but it will require you to work with Apache config files as described in my post on setting up virtual hosts in apache on MAMP.
Step 1: Download MAMP
Is this a redundant step? I hope so anyway, go download MAMP you want the non-pro version as shown below.
Step 2: Install MAMP
Double click the downloaded zip file to extract the disk image (.dmg file). Then double click the .dmg disk image to mount it.This will pop up the following dialog.
It feels kind of moronic even writing this, but incase there are people out there who need to know, you literally just drag the MAMP folder and drop it on the Applications folder in this dialog.
Step 3: Configure MAMP
After installing you can run MAMP any number of ways, you could navigate to the APplications folder in Finder and double click it, or just open spotlight (ctrl + space bar) and start typing ‘MAMP’ then just push enter when it find it, as a top hit. When it starts you’ll be presented with a dialog like this:
Go to preferences, I’ll just show you how I configure it quickly, you obviously don’t have to configure it this way, but I think it helps later when setting up your development environment. My configuration will mean you need root access (well, you’ll need sudo access – same diff) on your macbook. If you are installing MAMP on a macbook, you probably have this already.
You’ll want application default ports, rather then the MAMP defaults, this will mean your MAMP needs to run on protected ports, and thus you’ll need elevated priveleges to run it. It will mean your URL’s all look normal and your mysql setup in applications like Magento or Drupal will be more standard though.
Also configuring a more personal document root for Apache is nice too. I always lik to have one in my home directory, but you can put it whereever you like. here is the setup I use:
After doing the config changes you’ll need to stop and start the servers to have the new changes take effect. On starting them again you’ll be prompted for your password so that MAMP can open port 80 for Apache. This is normal, and although a slight inconvienence, it’ll mean your web URL’s can be
www.example.com when you set up virtual hosting instead of being
So that should have given you a MAMP setup on your macbook. Now you can follow my tutorial for setting up virtual hosting with Apache. Also shortly I’ll put up a full Magento install tutorial for MAMP with virtual hosting, to tie these two tutorials together. So stay tuned.