Postfix seems to work as soon as you add a domain via the MAMP admin.
-
-
Save anselmdk/aa05531954f1d44f9930 to your computer and use it in GitHub Desktop.
Short answer, add your hostname to /etc/hosts
:
127.0.0.1 Anselms-MacBook-Pro-2016.local
::1 Anselms-MacBook-Pro-2016.local
Answers here:
This might need to be done for mysql:
sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/local/bin/mysql
Connection problems can be alleviated using this socket:
/Applications/MAMP/tmp/mysql/mysql.sock
ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock
then restart mysql
As of Mamp 4, MAMP Pro sports the option to "Make this version available on the command line" under the PHP language settings.
This does work for just using PHP on the command line, but still gives some issues with composer etc.
The issue seems to be that when checking that box, MAMP Pro adds php as an alias in your .profile
/ .bash_profile
file, and not as path.
In order to fix this, add the following to your ~./profile
, where the php version coincides with the one MAMP uses:
PATH=/Applications/MAMP/bin/php/php5.6.27/bin:$PATH
export PATH
This needs to coincide with your installed php version
SilverStripe specific: You might get out-of-memory issues when changing this, make sure to delete
all files in your silverstripe-cache directory
in that case.