Install
Download MAMP Pro and Install
Note: all MAMP Pro specific configuration files are in /Library/Application Support/appsolute/MAMP PRO/
Configure PHP Preferences
- Click the “PHP” section
- Set default PHP version as desired
- Enable “Make this version available on the command line”
- Set “mode” to “Individual PHP version…”
- Enable the “Xdebug” extension
- Enable “Log error ‘to screen'”
Setup Virtual Hosts
Click the “Hosts” section and add hosts as needed.
Create 2 host records for each site (http and https). Hold down the ALT key when pressing the plus sign “+” to bypass the popup when creating the second host. They will show up in red and you will get a warning that you already have a host with that name, but that’s okay.
Update Command Line Services
These steps will allow you to run the MAMP services like apachectl and mysql from the command line using the MAMP versions (instead of the ones that come with your Mac) without having to put the full directory path to these commands.
- Edit your .bash_profile file… (you will need to do this for each user account on your Mac)
vi ~/.bash_profile
- Add the following somewhere in that file…
# MAMP export PATH=/Applications/MAMP/Library/bin:$PATH export PATH=/Applications/MAMP/bin/php/php5.6.30/bin:$PATH
- After making the change just close Terminal and reopen.
Additional information about this change…
- What it is and How to Modify the Shell Path in macOS Sierra and OSX using Terminal by Coolest Guides on the Planet
- How to run a PHP script from the command line with MAMP? from StackOverflow
- Access MAMP’s MySQL from Terminal from StackOverflow
Setup MySQL Time Zone Support
Follow these instructions… Install MySQL Time Zone Support on MAMP Pro
[…] you have already updated your command line services per MAMP Pro Setup then you can simply […]