open_basedir 限制生效。文件(/)不在允许的路径内:
P粉248602298
P粉248602298 2023-08-23 18:41:21
0
2
490
<p>我在网站上上传头像时遇到此错误。我以前从未得到过它,并且最近没有任何更改让我开始收到此错误......</p> <pre class="brush:php;toolbar:false;">Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s):</pre> <p><br /></p>
P粉248602298
P粉248602298

全部回复(2)
P粉659378577

要解决此错误,您必须编辑文件 httpd.conf。 之前可以在 phpinfo 中的 apache2handler 部分指令 Server Root 中看到。 例如我的例子是这样的——/etc/httpd/httpd.conf。 打开文件httpd.conf,找到参数open_basedir。并将其设置为无。 (php_admin_value open_basedir 无

P粉006540600

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

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!