- 积分
- 17
- 威望
-
- 金钱
-
- 注册时间
- 2019-5-21
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
框架 ThinkPHP5.0
用的是lnmp1.5
这是我的nginx站点配置
server
{
listen 80;
#listen [::]:80;
server_name k2.****.com ;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/lzydoudoumall/public;
include rewrite/thinkphp.conf;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php-pathinfo.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/k2.****.com.log;
error_log /home/wwwlogs/k2.****.comerror.log;
}
部署之后出现500
我查看了错误日志显示
2019/05/20 16:03:18 [error] 2793#0: *5455 FastCGI sent in stderr: "PHP message: PHP Warning: require(): open_basedir restriction in effect. File(/home/wwwroot/lzydoudoumall/thinkphp/base.php) is not within the allowed path(s): (/home/wwwroot/lzydoudoumall/public/:/tmp/:/proc/) in /home/wwwroot/lzydoudoumall/public/index.php on line 23
PHP message: PHP Warning: require(/home/wwwroot/lzydoudoumall/thinkphp/base.php): failed to open stream: Operation not permitted in /home/wwwroot/lzydoudoumall/public/index.php on line 23
PHP message: PHP Fatal error: require(): Failed opening required '/home/wwwroot/lzydoudoumall/public/../thinkphp/base.php' (include_path='.:/usr/local/php/lib/php') in /home/wwwroot/lzydoudoumall/public/index.php on line 23" while reading response header from upstream, client: 14.223.93.57, server: k2.vipc800.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "k2.vipc800.com"
2019/05/21 09:52:33 [error] 2793#0: *6063 FastCGI sent in stderr: "PHP message: PHP Warning: require(): open_basedir restriction in effect. File(/home/wwwroot/lzydoudoumall/thinkphp/base.php) is not within the allowed path(s): (/home/wwwroot/lzydoudoumall/public/:/tmp/:/proc/) in /home/wwwroot/lzydoudoumall/public/index.php on line 23
PHP message: PHP Warning: require(/home/wwwroot/lzydoudoumall/thinkphp/base.php): failed to open stream: Operation not permitted in /home/wwwroot/lzydoudoumall/public/index.php on line 23
PHP message: PHP Fatal error: require(): Failed opening required '/home/wwwroot/lzydoudoumall/public/../thinkphp/base.php' (include_path='.:/usr/local/php/lib/php') in /home/wwwroot/lzydoudoumall/public/index.php on line 23" while reading response header from upstream, client: 14.223.93.57, server: k2.vipc800.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "k2.vipc800.com"
这是nginx的错误日志
请问这是什么情况?
|
|