[PHP] laravel5.5 搭建流程
Posted wukong1688
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[PHP] laravel5.5 搭建流程相关的知识,希望对你有一定的参考价值。
1、nginx 配置
server {
listen 80;
server_name laravel5-test.d.com;
charset utf-8;
location / {
root D:/***/www/test/laravel55-test/public;
index index.php index.html index.htm;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ .php$ {
root D:/***/www/test/laravel55-test/public;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
2、composer install
3、php artisan key:generate
参考:
https://blog.csdn.net/jimliu004/article/details/45154981
https://blog.csdn.net/qq_25615395/article/details/79554863
以上是关于[PHP] laravel5.5 搭建流程的主要内容,如果未能解决你的问题,请参考以下文章
windows本地自己搭建的PHP7+Apache2.4环境使用composer安装laravel5.5