Cakephp警告:is_dir()[function.is dir]:有效的open_basedir限制
可能重复: 我上传了我的cakephp网站到我的网络托管服务器使用cPanel 在我上传网站后,我得到了一个错误列表Cakephp警告:is_dir()[function.is dir]:有效的open_basedir限制,php,cakephp,cakephp-2.0,cpanel,Php,Cakephp,Cakephp 2.0,Cpanel,可能重复: 我上传了我的cakephp网站到我的网络托管服务器使用cPanel 在我上传网站后,我得到了一个错误列表 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:/
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设置
从这里开始:
根据您的主机,您可能没有这样做的权限,您将不得不要求他们为您这样做
如果要使用CakePHP2,可能必须升级到PHP5
这一个可能有助于我在该文件路径中看到/php4/????请告诉我你实际上还没有使用PHP4?