我是靠谱客的博主 魁梧大雁,这篇文章主要介绍宝塔面板tp项目部署报错:is not within the allowed path(s) 解决方法,现在分享给大家,希望可以做个参考。

is not within the allowed path(s) 意思是没权限访问那个文件夹

解决方法:

每个网站路径下面都有一个 user.ini 文件

里面的内容为

增加以下::/proc/即可

open_basedir=/www/wwwroot/xxx.com/:/tmp/:/proc/

这个代表本网站可以访问的路径

如果需要添加其他路径.可以直接在后面添加即可,每个路径之间用:隔开

添加以后 重启下Nginx即可生效. 其他环境应该也都一样.

This entry was posted in Linux and tagged is not within the allowed path(s). Bookmark the permalink.

 

如果不可以参考:

http://www.dingdangming.com/?p=4358

https://blog.csdn.net/weixin_30439131/article/details/98719474

最后

以上就是魁梧大雁最近收集整理的关于宝塔面板tp项目部署报错:is not within the allowed path(s) 解决方法的全部内容,更多相关宝塔面板tp项目部署报错:is内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(145)

评论列表共有 0 条评论

立即
投稿
返回
顶部