[PHP][Framework][Video]How to install Laravel 4 in OS X , XAMPP

สวัสดีครับวันนี้ผมจะมาสอนวิธรการติดตั่ง Laravel PHP  framewrok พอดีว่าเจอปัญหาในการติดตั่งบน Mac กว่าจะหาวิธีแก้ได้ก็นานอยู่หลังจากแก้ได้ก็เลยว่าจะมาทำวิธีสอนให้ ขออุนญาติพิมพ์เป็นอังกฤษนะ เคยโดนฝรั่งด่ามาทีว่าตั่งหัวข้อภาษาอังกฤษแล้วเสลอทำเนื้อหาภาษาไทยทำไม เผื่อฝรั่งเขามาดูกัน Hi , Developers, I will show you to how install Laravel framework on Mac OSX , because I get some error when I use on it in OSX , However I take many time to find solution and in the end I can done it , Today I will to tech you in easy way , Let’s go!!!

Install Comoser

Let’s you download and install Composer before You need to install composer software on you OS , you can get from getcomposer.org and follow instruction on website  i won’t teah you to install composer , Let’s you do it yourself.

Get Laravel

Then download Laravel from github here  and place your folder in XAMPP/htdoc

First problem and solve

Open Terminal and change directory to /Applications/XAMPP/htdoc/{you folder} , before you install it , you have to check php path that point to /Applications/XAMPP/xamppfiles/bin/php or not by using which php in terminal and see if not same me ,let’s you change it by sudo vi ~/.bash_profile and type this command export “PATH=/Applications/XAMPP/xamppfiles/bin:$PATH” press I button move to insert mode , copy and paste , If finish use ESC to exit and type Colons (:) follow by wq to save and exit , Use which php again check path for make sure that is correct

****Don’t forget restart apache service after set path in ~/.bash_profile

Install Now!!

Then type composer install after you have finish installation go to browser and enter to localhost/{your laraval}

Last problem and solve

Boooom!!! you will get a error on your screen , Go to terminal again user both command find app/storage -type d -exec chmod 777 {} ; find app/storage -type f -exec chmod 777 {} ; then refresh browser you will get complete to install Laravel , Hope to enjoy it Byeeeee !

Update

****Don’t forget restart apache service after set path in ~/.bash_profile  

Wait For uploading video

Facebook Comments