Laravel must php>5.4 support MCrypt.
Download from Https://github.com/overtrue/latest-laravel Here the great God is sorted out, unzip can be used
Nginx Pseudo-Static:
Server{listen, #listen [::]:80;server_name laravel.zy62.com;index index.html index.htm index.php default.html Default.htm Default.php;root/home/wwwroot/laravel.zy62.com/public;include other.conf, #error_page 404/404.html; Location ~. *\. (PHP|PHP5)? $ {try_files $uri = 404; Fastcgi_pass Unix:/tmp/php-cgi.sock; Fastcgi_index index.php; Include fcgi.conf; }location ~. *\. (gif|jpg|jpeg|png|bmp|swf) ${expires 30d;} Location ~. *\. (js|css)? ${expires 12h;} if (!-d $request _filename) {rewrite ^/(. +)/$/$1 permanent; } # Removes trailing "index" from all controllers if ($request _uri ~* index/?$) { Rewrite ^/(. *)/index/?$/$1 Permanent; # unless the request is a valid file (image, JS, CSS, etc), send to Bootstrap if (!-e $reques T_filename) {rewrite ^/(. *) $/index.php?/$1 lasT Break }access_log/home/wwwlogs/laravel.zy62.com.log access;}
Include fcgi.conf;
fastcgi_param script_filename $document _root$fastcgi_script_name;fastcgi_param QUERY_STRING $query _string;fastcgi_param request_method $request _method;fastcgi_param content_type $content _type;fastcgi_pa Ram content_length $content _length;fastcgi_param script_name $fastcgi _script_name;fastcgi_param Request_uri $request _uri;fastcgi_param Document_uri $document _uri;fastcgi_param document_root $document _ROOT;FASTC Gi_param server_protocol $server _protocol;fastcgi_param gateway_interface cgi/1.1;fastcgi_param SERVER_SOFTWARE nginx/$nginx _version;fastcgi_param remote_addr $remote _addr;fastcgi_param remote_port $remote _port;fastcgi _param server_addr $server _addr;fastcgi_param server_port $server _port;fastcgi_param server_name $ server_name;# PHP only, required if PHP is built with--enable-force-cgi-redirectfastcgi_param redirect_status 200;
Error:an Another FPM instance seems to already listen On/tmp/php-cgi-714ms.com.sock
Workaround:
/ROOT/LNMP Reload