install MAMP

*I was able to disable the Apache server that ships with OSX using the following command:

sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist

Find out where your PHP executable is located:
which php

Check this is the most recent version and under /Applications/MAMP
Add this path to ~/.bash_profile

sudo nano ~/.bash_profile

export PATH=/Applications/MAMP/bin/php/php5.6.2/bin:$PATH

source ~/.bash_profile

curl -s | php

php composer.phar

sudo mv composer.phar /usr/bin/

sudo nano ~/.bash_profile

alias composer="php /usr/bin/composer.phar"

cd /Applications/MAMP/htdocs

composer create-project laravel/laravel your-project-name –prefer-dist

sudo chmod -R 775 your-project-name/storage
* Laravel 5

sudo chmod -R 775 your-project-name/app/storage
* Laravel < 5


ติดตั้ง Laravel 5 ร่วมกับ MAMP บน OSX



Tagged on: