我目前open_basedir restriction
在 Media Temple 上运行的 CakePHP 应用程序出现错误。(出于提问的目的更改了站点编号和域)。
我在这里阅读了文档:https ://kb.mediatemple.net/questions/514/How+do+I+set+the+path+for+open_basedir%3F#gs了解如何解决此问题。
我在我的 php.ini 文件中尝试了以下内容:
open_basedir = /home/00000/domains
但仍然得到同样的错误。如下:
Warning (2): file_exists(): open_basedir restriction in effect. File(/home/00000/domains/test.com/html/app/webroot/index.php/img/cameron.jpg) is not within the allowed path(s): (/home/00000/domains) [APP/Plugin/Timthumb/Vendor/timthumb.php, line 896]
有任何想法吗?
肯定会应用更改,因为错误路径已更新为我上面指定的内容,但我仍然受到open_basedir
限制。并且做 phpinfo() 也显示了变化:
更新:Media Temple 对此不提供支持,但礼貌地提供了一些帮助,并表示我需要执行以下操作:
open_basedir = "/home/00000/data/tmp:/home/00000/domains"
但是,这仍然不起作用!他们无法提供进一步的信息。
更新 2:Mod_rewrite 已启用,我正在使用此插件:https ://github.com/vishal-logiciel/TimthumbPlugin/