LARAVEL5 Linux Installation

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.