インストール
$ cd /tmp $ curl -sS https://getcomposer.org/installer | php $ sudo mv composer.phar /usr/local/bin/composer.phar $ alias composer='/usr/local/bin/composer.phar' $ composer --version $ composer create-project laravel/laravel <my_laravel_app_name> dev-master --prefer-dist $ cd <my_laravel_app_name>/ $ chmod -R 777 storage/ $ sudo mv /tmp/<my_laravel_app_name> /var/www/<my_laravel_app_name>
nginxの設定
server { listen 80; server_name 192.168.33.10; # Laravel5プロジェクトのpublicフォルダを指定 root /var/www/<my_laravel_app_name>/public; charset UTF-8; # '/'で始まる全てのURIに一致 location / { # リクエストURI, /index.phpの順に処理を試みる try_files $uri /index.php?$query_string; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } # PHPをPHP-FPMで動かすためのおまじない location ~ \.php$ { #fastcgi_pass 127.0.0.1:9000; fastcgi_pass unix:/var/run/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; include fastcgi_params; } }
参考
http://qiita.com/sota1235/items/062bbc70a830278ae12b
多謝