dir() [function.is

Possible Duplicate:
open_basedir restriction in effect. File(/) is not within the allowed path(s):

I uploaded my cakephp site to my web hosting server using cPanel...

And I got a list of errors after I uploaded the site.

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 ...

Anyone knows how to solve it?

I try adding .htaccess

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

It doesn't work too...


modify the open_basedir settings on your httpd configuration file.

From here: stackoverflow.com/questions/1846882/...

Depending on your hosting, you may not have permissions to do so and you will have to ask them to do it for you.

If you are going to use CakePHP 2, you may have to upgrade to PHP5.

PHP 5.2.8 or greater

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

上一篇: basedir限制有效“

下一篇: dir()[function.is