论坛 魔众题库系统 php错误提示 open_basedir restriction in effect 解决

php错误提示 open_basedir restriction in effect 解决

李子豪 发表于 阅读:489 回复:

其实open_basedir 这个是用来限制php的目录访问权限什么的,如果不在允许的范围内,php就不能访问。
这个 open_basedir 在 php.ini 里可以设定,也可以在 apache 或 nginx 的配置文件增加中设置,可以选择以下三种配置方式任意一种:
php.ini配置:open_basedir=/tmp:/data/xxx
Nginx中配置:fastcgi_param PHP_VALUE "open_basedir=/tmp/:/data/xxx";
Apache中配置:php_admin_value open_basedir =/tmp:/data/xxx

以上配置假设您的系统路径为 /data/xxx


我来评论