Download Laravel Framework
Composer Create-project Laravel/laravel project name Version name
Example: Composer Create-project Laravel/laravel HomeNet 5.0
Create a project named HomeNet, the Laravel framework version is 5.0
Composer Create-project Laravel/laravel--prefer-dist
Latest Version
Nginx/usr/local/nginx/conf/vhost Add conf file
Add a method: Under any directory, add conf file (Root permission) Lnmp vhost add
For example, add a domain name of test.com
Modify configuration file VI test.com.conf
Modify the parameter root/home/user name/wwwroot/public in wwwroot for your project name (Project home path)
If it is an Nginx server, put the following instructions in the URL's configuration file, you can make the URL more elegant:
Location/{
Try_files $uri $uri//index.php? $query _string;
}
Note: Placed above the default file location
Modify storage and Vendor directory permissions under project directory
Chown Storage Www:www
chmod 0777 storage-r (Recursive)
Chown Vendor Www:www
chmod 0777 Vendor-r (Recursive)
Ubuntu Installation Laravel Framework Prerequisites