$ curl -sS https://getcomposer.org/installer | php -- --install-dir=lumen
$ mv composer.phar /usr/local/bin/composer
$ export PATH=~/.composer/vendor/bin:$PATH
$ composer global require "laravel/lumen-installer"
server {
listen 80;
server_name www.lumen.loc;
set $root_path '/home/wwwroot/lumen/public';
root $root_path;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ (index|get|static|report|404|503)\.php$ {
try_files $uri =404;
fastcgi_pass fastcgi_backend;
fastcgi_param PHP_FLAG "session.auto_start=off \n suhosin.session.cryptua=off";
fastcgi_param PHP_VALUE "memory_limit=256M \n max_execution_time=600";
fastcgi_read_timeout 600s;
fastcgi_connect_timeout 600s;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {
root $root_path;
}
location ~ /\.ht {
deny all;
}
}
/etc/hosts
php composer.phar dump-autoload