dir()[function.is

可能重复:
有效的open_basedir限制。 文件(/)不在允许的路径中:

我使用cPanel将我的cakephp站点上传到我的网站托管服务器...

我上传了该网站后,我收到了一个错误列表。

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect.
File(/usr/php4/lib/php/cake/libs) is not within the allowed path(s):
(/home/sumykids:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in ...

任何人都知道如何解决它?

我尝试添加.htaccess

<IfModule mod_rewrite.c>    RewriteEngine on    RewriteRule    ^$
app/webroot/    [L]    RewriteRule    (.*) app/webroot/$1 [L]   
php_value     include_path .
</IfModule>

它也行不通...


修改httpd配置文件中的open_basedir设置。

从这里:stackoverflow.com/questions/1846882 / ...

根据你的托管,你可能没有权限这样做,你将不得不要求他们为你做。

如果您要使用CakePHP 2,则可能需要升级到PHP5。

PHP 5.2.8或更高版本

链接地址: http://www.djcxy.com/p/69261.html

上一篇: dir() [function.is

下一篇: basedir restriction oddness