Lavarel 4 install
Install Composer.phar
- 請確認安裝
- php5-cli
- curl
- curl -sS https://getcomposer.org/installer | php
- php composer.phar
如果 access 沒有支援 SSH,
- 可以從 php exec 中操作
- 在 local 端 composer 後,直接將整包上傳
Move composer.phar
- cp composer.phar /usr/local/bin/composer
Install Laravel on Server
- composer global require "laravel/installer=~1.1"
- 確認是否有 laravel file
- cd ~/.composer/vendor/bin
Create Laravel Project
- 切換到 web 目錄
- composer create-project 要建立的位置 --prefer-dist
Install extension
- apt-get install php5-mcrypt
- php5enmod mcrypt
- /etc/init.d/php5-fpm restart
Change Folder permission
- chmod -R 777 app/storage
Troubleshooting
- app/config/app.php 將 debug => true
Support in NetBeans(link)
Lavarel 4 install
Reviewed by Wild
on
11/20/2014 11:35:00 上午
Rating:
沒有留言:
沒有Google帳號也可發表意見唷!