【发布时间】:2009-12-07 19:44:23
【问题描述】:
在我的网站上上传头像时出现此错误。我在服务器上的 php.ini 中将“open_basedir = /home/”更改为“open_basedir =”。这是一个专用服务器,我在调整后重新启动它。
Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/source:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/source/public_html/lib/php/tru/directory.php on line 46
Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/source:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/source/public_html/lib/php/tru/directory.php on line 46
我还能做些什么来解决这个问题?
【问题讨论】:
-
你检查你只有一个 php.ini 文件吗?无需重启,只需用 apachectl restart electrictoolbox.com/article/apache/restart-apache重启apache即可
标签: php open-basedir