location ~ .+\.php($|/) { fastcgi_pass unix:/run/php/php7.0-fpm.sock; fastcgi_split_path_info ^((?U).+.php)(/?.+)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $root$fastcgi_script_name; include fastcgi_params; }
ThinkPHP 5 LNMP PHP 7 环境 服务器 Error 500 错误
ThinkPHP 5 部署在了LAMP/LNMP 环境上很有可能出现 Error 500 的情况,这个时候需要开启 php 错误提示来判断是否是因为设置了open_basedir 选项出错。 Continue reading ThinkPHP 5 LNMP PHP 7 环境 服务器 Error 500 错误
Nginx 去掉 ThinkPHP Url 中的 index.php
index index.html index.php index.htm; location / { #去掉index.php,index 必须在此之上。 if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?s=$1 last; break; } }
阿里云服务器安装 ThinkPHP 记录一次坑
1. vhost 里设置重写或添加配置好的重写路径
2. 删除缓存文件 /Runtime/common~runtime.php 或开启 DEBUG Continue reading 阿里云服务器安装 ThinkPHP 记录一次坑