Home  >  Article  >  PHP Framework  >  phpstudy uses PHP+nginx to configure Laravel

phpstudy uses PHP+nginx to configure Laravel

步履不停
步履不停Original
2019-07-03 15:04:186648browse

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

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!

Statement:
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