centos系统,nginx+php7.3
使用thinkphp5安装到宝塔的linux上,出现以下错误:
Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/c
解决办法:找到 php.ini 打开 open_basedir 修改为: /www/wwwroot/
open_basedir = "/www/wwwroot/"
问题解决,可以正常访问
如果还不行,在宝塔面板勾选掉防跨站攻击
centos系统,nginx+php7.3
使用thinkphp5安装到宝塔的linux上,出现以下错误:
Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/c
解决办法:找到 php.ini 打开 open_basedir 修改为: /www/wwwroot/
open_basedir = "/www/wwwroot/"
问题解决,可以正常访问
如果还不行,在宝塔面板勾选掉防跨站攻击