Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装命令成功但是打开网页报错了 #17

Closed
taotaolin opened this issue Oct 18, 2018 · 2 comments
Closed

安装命令成功但是打开网页报错了 #17

taotaolin opened this issue Oct 18, 2018 · 2 comments

Comments

@taotaolin
Copy link

Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/od.ramiko.me/vendor/autoload.php) is not within the allowed path(s): (/www/wwwroot/od.ramiko.me/public/:/tmp/:/proc/) in /www/wwwroot/od.ramiko.me/public/index.php on line 24

Warning: require(/www/wwwroot/od.ramiko.me/vendor/autoload.php): failed to open stream: Operation not permitted in /www/wwwroot/od.ramiko.me/public/index.php on line 24

Fatal error: require(): Failed opening required '/www/wwwroot/od.ramiko.me/public/../vendor/autoload.php' (include_path='.:/www/server/php/71/lib/php') in /www/wwwroot/od.ramiko.me/public/index.php on line 24

@WangNingkai
Copy link
Owner

目录没有权限,看字面意思好像是open_basedir受到了限制,应该是你一开始配置的网页根目录没有指到public目录导致的,可以试下先拉取目录下来再配置网页目录应该就好了

@WangNingkai
Copy link
Owner

open_basedir 防跨目录问题 军哥lnmp.org 的 官网有修改方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants