title: How to set the value of open_basedir?
body: <p>The document root for my website is <code>/data/home/htdocs</code>.</p>
  
  <p>In my vps <code>php.ini</code> there is  a line <code>open_basedir= /data/home</code> under which, there is this line:</p>
  
  <pre><code>upload_tmp_dir = /tmp
  </code></pre>
  
  <p>Now, there is a problem. My site can't upload any image, but when I comment <code>open_basedir= /data/home</code> this line, it can upload the image.</p>
  
  <p>Why does this happen? </p>