Forums / Developer / Upgrading from 3.10 to 4.0 - Warning in the debug
Salvatore Guarino
Monday 14 April 2008 4:48:17 am
Hi, I just upgraded a site form eZ Publish 3.10 to 4.0. I used this instructions http://ez.no/doc/ez_publish/upgrading/upgrading_to_4_0/from_3_10_0_to_4_0_0 and the site now seem to work fine. I noticed only a permanent warning when enable the debug:
file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/eztemplateautoload.php) is not within the allowed path(s): (/var/www/vhosts/mysite/httpdocs:/tmp) in /var/www/vhosts/mysite/httpdocs/lib/eztemplate/classes/eztemplate.php on line 2216
Is there something to do to remove this warning? I don't understand it...
Thx and bye!
Kristof Coomans
Monday 14 April 2008 5:25:46 am
Hi Salvatore
It seems like your PHP is configured with the open_basedir setting. See http://www.php.net/manual/en/features.safe-mode.php#ini.open-basedir for more information.I advice you to turn open_basedir off.
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Thursday 17 April 2008 1:49:04 am
Thank you Kristof,
I'm in a virtual host environment, and there is the following generated value in the vhost.conf file:
php_admin_value open_basedir "/var/www/vhosts/mysite/httpdocs:/tmp"
It's better that I don't modify this value... Do you think I can ignore safetly the warning? Basedir is "locked" on root directory of my site, for eZ publish should be enough... It's correct?
Thursday 17 April 2008 5:18:45 am
According to the PHP warning you got, it won't be good to leave open_basedir on. So better to turn it off.