Upgrading MAMP Pro

Upgrading MAMP Pro is a little complicated. Here's the procedure I used to upgrade from 1.8.3 to 1.9.6.1:

  • Make sure MAMP isn't running.
  • Rename the existing MAMP folder to be MAMP_OLD.
  • Copy the new MAMP and MAMP Pro 1.9.6.1 folders to your Applications folder.
  • Load MAMP Pro and allow it to initialize its components.
  • The MAMP upgrade docs say that you may need to copy your htdocs and db folders over. In my experience, this wasn't necessary because MAMP stores most of its data at /Library/Application Support/appsolute/MAMP PRO/, which stays in place through the upgrade.
  • The new version of MAMP Pro may come with new templates for httpd.conf, my.cnf, etc. It will ask you to save your existing ones somewhere else; do that and then use diff (or FileMerge) to migrate any changes.
  • I typically relink PHP from my /usr/local/bin to the mamp directory; e.g.
    ln -s /Applications/MAMP/bin/php5.2/bin/php /usr/local/bin/php-mamp

    Depending on which version you've upgraded to, you may need to relink this.

  • MAMP very annoying uses a different php.ini if you call it on the command line vs. calling it via apache. So I typically link the command line over to reference the apache one:
    ln -s "/Library/Application Support/appsolute/MAMP PRO/conf/php.ini" "/Applications/MAMP/conf/php5.2/php.ini"
  • That should be it. Test your sites out and see if they work.

Discussion

Enter your comment
 
server-tech/macosx/upgrading-mamp-pro.txt · Last modified: Dec 6, 2011 11:54 AM by dordal
© 2005-10 David Ordal / DO IT, LLC. All Rights Reserved.