宝塔面板配置记录

1. 在打开错误时发现提示 Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../license.php) is not within the allowed path(s): 错误了

问题是出现在了PHP.INI上面了 
 原因是php.ini里设置了  

open_basedir=/var/web/w0895/:/tmp:/usr/lib/php

这里加上相关的目录就可以了

解答:
其实open_basedir 这个是用来限制php的目录访问权限什么的,如果不在允许的范围内,php就不能访问。
这个 open_basedir 在 php.ini 里可以设定,也可以在 apache的httpd.conf 里面设定

例如:

php_admin_value open_basedir "D:/wwwroot/cache/tmp/anzhuo/"

再比如:

php_admin_value open_basedir =/var/web/w0895/:/tmp:/usr/lib/php

原文地址:https://www.cnblogs.com/beyang/p/10255186.html