- 积分
- 2
- 威望
-
- 金钱
-
- 注册时间
- 2017-4-17
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
我网站 访问PHP时出现No input file specified 当我修改.user.ini 后, 会报错500 有將ROOT 由 ss.panel 改成 /home/wwwroot/ss.panel/public/
.user.ini 原设置
open_basedir=ss.panel:/tmp/:/proc/ 改成 open_basedir=ss.panel/public:/tmp/:/proc/ 都是出现 No input file specified
在改成绝对路徑后 open_basedir=/home/wwwroot/ss.panel:/tmp/:/proc/ 后成500了
tmas.site.conf
server
{
listen 80;
#listen [::]:80;
server_name tams.site ss.panel;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/ss.panel/public;
include none.conf;
#error_page 404 /404.html;
include enable-php-pathinfo.conf;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/ss.tkser.xyz.log;
}
域名LOG
"GET / HTTP/1.1" 404 56 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36" (原设置时)
[01/May/2017:15:02:05 +0800] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36" (改成绝对路徑时.)
nginx_error.log
2017/05/01 14:19:06 [crit] 6176#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream,client: xxx.xxx.xxx.xxx, server: tams.site, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "tams.site" |
|