知识库

查找有关信息特性、故障排除指南、
以及关涉虚拟主机服务其他技术信息的文章。

get 'open_basedir restriction in effect, file is not within the allowed path' error

引用:
open_basedir error basedir openbasedir allowed path open_basedir restriction in effect file is not within the allowed path

If you get 'open_basedir restriction in effect, file is not within the allowed path' or similar error message, please make sure your script is trying to access files from your home directory (which is /home/yourusername/*).

Keep in mind that you are not allowed to access files from directories outside your account.