[fastadmin]第二十三篇 fastadmin 部署-一直显示install
错误信息
宝塔截图日志分析
宝塔截图错误日志分析
文字提示:
fastadmin/public/../application/admin/command/Install/install.lock) is not w
一直自动跳转到install
反复部署,数据库,权限都对。
还是跳。
install.lock也是对的。
报错提示 install.lock 不存在, 但是实际上存在啊=
错误提示如下:
2024/02/15 15:25:25 [error] 22264#0: *1652 FastCGI sent in stderr: "PHP message: PHP Warning: is_file(): open_basedir restriction in effect. File(/www/wwwroot/yytest/youyi/public/../application/admin/command/Install/install.lock) is not within the allowed path(s): (/www/wwwroot/yytest/youyi/public/:/tmp/) in /www/wwwroot/yytest/youyi/public/ClykrdceLR.php on line 19" while reading response header from upstream, client: 114.84.79.214, server: dev.btchc.com, request: "GET /ClykrdceLR.php/index/install.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-73.sock:", host: "dev.btchc.com"
排查后,发现可能是宝塔有一个隐藏文件,防止跨域攻击导致得
user.ini 隐藏文件
删除就好了
本作品采用《CC 协议》,转载必须注明作者和本文链接
哈哈 我也遇到过