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

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 http://getcomposer.org/installer | 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

ref:
http://www.17educations.com/laravel/install-laravel-mac-using-mamp/

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  เปลี่ยนแปลง )

Google photo

You are commenting using your Google account. Log Out /  เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out /  เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out /  เปลี่ยนแปลง )

Connecting to %s