问题描述:
根据安装教程,我通过 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
`
文件目录权限截图
![Image description](https://flarum.csur.fun/2021-11-18/1637202038-124203-64e84ee6-5dcb-44cf-8366-33365cb4d627.png)
![Image description](https://flarum.csur.fun/2021-11-18/1637202670-679209-e2cb0d5d-c77c-4349-a827-1963204d1982.png)
![Image description](https://flarum.csur.fun/2021-11-18/1637202546-31557-a6b6cd74-65c6-4110-b9bb-3c6330803410.png)
调试模式报错内容:
已尝试的解决办法:
修改权限,尝试修改777 ,并安装 EXIF ,phpinfo ,仍无法解决
网址: