I'm currently getting an open_basedir restriction
error on my CakePHP application running on Media Temple. (site number and domain changed for purpose of question).
I've read the docs here: https://kb.mediatemple.net/questions/514/How+do+I+set+the+path+for+open_basedir%3F#gs for how to fix this problem.
I've tried the following in my php.ini file:
open_basedir = /home/00000/domains
But still get the same error. Which is as follows:
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]
Any ideas?
The change is definitely being applied as the error path is updated to what I have specified above, but I still get the open_basedir
restriction. And doing phpinfo() shows the change as well:
Update: Media Temple doesn't offer support for this, but has been courtesy enough to provide some help and said that I need to do the following:
open_basedir = "/home/00000/data/tmp:/home/00000/domains"
However this STILL does not work! And they are unable to provide further info.
Update 2: Mod_rewrite is enabled, and I'm using this Plugin: https://github.com/vishal-logiciel/TimthumbPlugin/