Wednesday, July 08, 2015

Configuring MAMP PRO components with Custom Templates

While MAMP PRO offers configuration options for the most common settings of Apache, MySQL and PHP, experienced users may want to fine-tune some of the lesser used options. Instead of directly editing config files such as http.conf, php.ini or my.cnf, MAMP PRO uses template files to allow for custom changes to your server environment. You can access your templates through the MAMP PRO menu.

A template file is created in ~/Library/application support/appsolute/MAMP PRO/templates when you make a change to one of your templates.There are separate templates for your Apache, Apache SSL, PHP, and MySQL configurations. If you have not made any changes to your templates, your ~/Library/application support/appsolute/MAMP PRO/templates directory will be empty.


If there has been a change to the configuration of Apache, PHP, or MySQL (A directive was modified or a new one added) between versions of MAMP PRO and you have already made changes to your current configuration (resulting in the creation of a template file in ~/Library/application support/appsolute/MAMP PRO/templates ), MAMP PRO will ask you to save off your old templates when you upgrade. 

A popup dialogue will appear when you upgrade.

Save your template files. You can use these saved template files as a guide of your previous modifications. New (re)modifications need to be made through the MAMP PRO interface (File > Edit Templates), just as you had done before in your previous version of MAMP PRO.