1

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

4

1 回答 1

0

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

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

根据您的托管,您可能没有权限这样做,您必须要求他们为您执行此操作。

如果您打算使用 CakePHP 2,您可能必须升级到 PHP5。

PHP 5.2.8 或更高版本

于 2012-08-19T11:56:35.717 回答