Linux Nginx Deployment Laravel

Source: Internet
Author: User

Composer

Composer is a dependency management tool for PHP. It allows you to declare the code base on which the project depends, and it installs them for you in your project. Running Composer requires PHP 5.3.2+ or later. Some sensitive PHP settings and compilation flags are also required, but a warning is thrown for any incompatible installation program.

Installing Composer

Curl-ss Https://getcomposer.org/installer | PHP    MV Composer.phar/usr/local/bin/composer  

by Composer Create-project
Composer Create-project--prefer-dist Laravel/laravel Blog

Nginx

If you use Nginx, adding the following code to your site configuration will forward all requests to the front- index.php end controller.

Location/{    try_files $uri $uri//index.php? $query _string;}

Last Access IP

Attached: one-click Installation lnmp:https://lnmp.org/install.html

Reference:

Http://d.laravel-china.org/docs/5.4/installation

http://blog.csdn.net/jespere_ling/article/details/49508943

http://blog.csdn.net/qq_28666081/article/details/52728701

Linux Nginx Deployment Laravel

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.