open_basedir 限制生效.文件(/)不在允许的路径内: [英] open_basedir restriction in effect. File(/) is not within the allowed path(s):

查看:53
本文介绍了open_basedir 限制生效.文件(/)不在允许的路径内:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上上传头像时遇到此错误.我以前从未得到过它,最近没有任何变化让我开始收到此错误...

I'm getting this error on an avatar upload on my site. I've never gotten it before and nothing was changed recently for me to begin getting this error...

Warning: is_writable() [function.is-writable]: 
open_basedir restriction in effect. 
File(/) is not within the allowed path(s):

推荐答案

修改您的主机帐户中的 open_basedir 设置并将它们设置为 none.在 Plesk/cPanel 的PHP 设置"区域下找到 open_basedir 设置.从那里给出的下拉列表中将其设置为无".我已经在 Plesk 面板图片中展示了它们.

Modify the open_basedir settings in your hosting account and set them to none. Find the open_basedir setting given under 'PHP Settings' area of your Plesk/cPanel. Set it to 'none' from the dropdown given there. I have shown them in the Plesk panel picture.

这篇关于open_basedir 限制生效.文件(/)不在允许的路径内:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆