Hosting and some Error in folders and files path

Permalink
Hi,

I'm in front of a problem and i think its a server side problem.

After a fresh upload of a local website to the live server i encounter a ZEND error telling me this :
Warning: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (VIRTUAL_DOCUMENT_ROOT:/home/chroot_bind/php/php5/usr/local/lib/php/)

So i did change the tmp folder to their own and did change :
www/concrete/libraries/3rdparty/Zend/Cache/Backend/File.php

change the line 91 to this :
protected $_options = array(
        'cache_dir' => 'tmp',


The warning disapear and i get another one which is the one below :

<b>Warning</b>:  tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (VIRTUAL_DOCUMENT_ROOT:/home/chroot_bind/php/php5/usr/local/lib/php/) in <b>/home/3-web/38/dd/satrihouse.com/public/www/temp2/concrete/core/helpers/file.php</b> on line <b>188</b>


So i change this file :
www/concrete/core/headers/File.php


Change this on line 158 :
if (!is_dir(DIR_BASE . '/files/tmp')) { 
         @mkdir(DIR_BASE . '/files/tmp', DIRECTORY_PERMISSIONS_MODE);
         @chmod(DIR_BASE . '/files/tmp', DIRECTORY_PERMISSIONS_MODE);
         @touch(DIR_BASE . '/files/tmp/index.html');
      }
      if (is_dir(DIR_BASE . '/files/tmp') && is_writable(DIR_BASE . '/files/tmp')) {
         return DIR_BASE . '/files/tmp';
      }

to this
if (!is_dir(DIR_BASE . '/tmp')) { 
         @mkdir(DIR_BASE . '/tmp', DIRECTORY_PERMISSIONS_MODE);
         @chmod(DIR_BASE . '/tmp', DIRECTORY_PERMISSIONS_MODE);
         @touch(DIR_BASE . '/tmp/index.html');
      }
      if (is_dir(DIR_BASE . '/tmp') && is_writable(DIR_BASE . '/tmp')) {
         return DIR_BASE . 'files/tmp';
      }


Warning disapear and everything worked fine.
But i can't upload Files and seams that some of the gallery i use cant show thumbnails.

Any helps about this would be nice ?

chrismodlao