May 4th, 2016
Updated March 23rd, 2017
Updated March 26th, 2017
These are my rough notes for upgrading to a new version of MAMP standard.
- Rename /Applications/MAMP to /Applications/MAMP-old
- Get the newest version of MAMP and run the installer
- Copy over the site files in /Applications/MAMP-old/htdocs
- Copy over the db files in /Applications/MAMP-old/db/mysql
- The new directory may be called "mysql56" or similar instead of "mysql"
- Copy the my.cnf file from /Applications/MAMP-old/conf
- Edit .bash_profile to include the new paths
- ie., export PATH=/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php/php7.1.1/bin:$PATH
- Compare the following old files to the new ones and update as needed:
- php.ini
- There are two versions of php.ini for each php version. The one that you want is in the /Applications/MAMP/bin/php/(php version)/conf/ directory, ie., /Applications/MAMP/bin/php/php7.1.1/conf/php.ini
- /Applications/MAMP/conf/apache/httpd.conf
- /Applications/MAMP/conf/apache/extra/httpd-ssl.conf
- /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
- php.ini
- Copy over SSL server keys
- cp /Applications/MAMP-old/conf/apache/server.crt /Applications/MAMP/conf/apache
- cp /Applications/MAMP-old/conf/apache/server.key /Applications/MAMP/conf/apache
- For newer versions of MySQL, run
mysql_upgrade
to upgrade your tables to support the newest MySQL features, see https://dev.mysql.com/doc/refman/5.6/en/mysql-upgrade.html- If you don't do this, check your MySQL errors log, ie., /Applications/MAMP/logs/mysql_error_log.err, and you will most likely see errors telling you to run the mysql_upgrade command.
- After you are confident that the new install is working ok, delete the /Applications/MAMP-old folder