问题描述:
根据安装教程,我通过 composer 创建项目 ,并修改了网站目录权限,并赋予 www-data 用户组权限。打开页面空白,在chrome 上报 500 ,我开启php日志 并看到以下错误
报错内容:
`
Warning: require(): open_basedir restriction in effect. File(/home/wwwroot/fortressbesieged.com/site.php) is not within the allowed path(s): (/home/wwwroot/fortressbesieged.com/public/:/tmp/:/proc/) in /home/wwwroot/fortressbesieged.com/public/index.php on line 10
Warning: require(/home/wwwroot/fortrxxxd.com/site.php): failed to open stream: Operation not permitted in /home/wwwroot/fortrxxxd.com/public/index.php on line 10
Fatal error: require(): Failed opening required ‘../site.php’ (include_path=‘.:/usr/local/php/lib/php’) in /home/wwwroot/fortrxxxd.com/public/index.php on line 10
`
文件目录权限截图
调试模式报错内容:
已尝试的解决办法:
修改权限,尝试修改777 ,并安装 EXIF ,phpinfo ,仍无法解决
网址: