大连网站公司,更换网站需要备案吗,网站制作框架,规划设计 网站 网站结构新上一个网站#xff0c;通过域名访问失败#xff0c;排查方法如下#xff1a;
开启异常日志
开启域名下#xff0c;nginx的异常日志#xff0c;并查看日志
tail -f /var/log/nginx/nginx.localhost.error.log开启php的异常日志#xff0c;该配置位于php.ini文件下 …新上一个网站通过域名访问失败排查方法如下
开启异常日志
开启域名下nginx的异常日志并查看日志
tail -f /var/log/nginx/nginx.localhost.error.log开启php的异常日志该配置位于php.ini文件下
tail -f /var/log/php/php.error.logopen_basedir 异常处理 通过日志查看到异常如下 PHP Warning: Unknown: open_basedir restriction in effect. File(/www/work/law/phpinfo.php) is not within the allowed path(s): (/www/wwwroot/zing.jdjhz.com/:/tmp/:/proc/) in Unknown on line 0 open_basedir 意思是开启了访问目录限制常见限制方式有三种
php.ini 配置中进行了限制打开php.ini搜索open_basedir可以注释它或者修改代码nginx中进行配置一般在你的nginx域名配置下有一段代码类似如下可以删除或修改代码 fastcgi_param PHP_VALUE “open_basedir/www/wwwroot/zing.jdjhz.com/:/tmp/:/proc/” 项目目录下网站根目录下存在.user.ini文件删除它