Home > PHP Framework > Laravel > body text

phpstudy uses PHP+nginx to configure Laravel

步履不停
Release: 2019-07-03 17:57:54
Original
6671 people have browsed it

phpstudy uses PHP+nginx to configure Laravel

1. Please note that \ in the root project path in the vhosts.conf file is replaced with /
For example, root "D:/laravelApp/test/public";

2. If there is no .env in the root directory of the file
1. Rename .env.example using the command copy to .env, enter the root directory and execute the code below

copy .env.exmaple .env
Copy after login

2. Use the command php artisan key :generate gets the password, automatically saves it to .env
3, reruns, OK.

If there is .env, proceed directly to the second step.

For more Laravel related technical articles, please visit the Laravel Tutorial column to learn!

The above is the detailed content of phpstudy uses PHP+nginx to configure Laravel. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template