Warning: chdir(): open_basedir restriction in effect. File(..) is not within the allowed path(s)

配置phpmyadmin报错:
Warning: chdir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.:/tmp/) in /data/webdata/htdocs/pma/js/get_scripts.js.php on line 10
Warning: realpath(): open_basedir restriction in effect. File(/data/webdata/htdocs/pma/libraries/Response.class.php) is not within the allowed path(s): (.:/tmp/) in /data/webdata/htdocs/pma/libraries/Error.class.php on line 438
Warning: realpath(): open_basedir restriction in effect. File(/data/webdata/htdocs/pma) is not within the allowed path(s): (.:/tmp/) in /data/webdata/htdocs/pma/libraries/Error.class.php on line 448
解决方案:
出现上述错误,是因为没有权限操作目录。
修改PHP配置文件php.ini中open_basedir参数
open_basedir = "/data/webdata/htdocs/:/tmp/" //网站根目录和tmp目录

0 个评论

要回复文章请先登录注册