title: open_basedir, File() is not within the allowed path
body: <p>I'm having an issue with Laravel, installed on a Media Temple DV:</p>
  
  <pre><code>tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/vhosts/mywebsite.com/:/tmp/)
  </code></pre>
  
  <p>This is the code that is giving this issue:</p>
  
  <pre><code>if (empty($this-&gt;cookie_file)) {
      $this-&gt;cookie_file = tempnam("", "phrets");
  }
  </code></pre>
  
  <p>I'm thinking that it might be a permissions thing, but I'm really not too sure.</p>