title: Open Base Directory Cross Domain
body: <p>Changing the <code>open_basedir</code> directive to work with subdomains works absolutely fine on my server by simply setting the directive to:</p>
  
  <p><code>C:\Inetpub\vhosts\domain.net\subdomains\beta\httpdocs\;C:\Inetpub\vhosts\domain.net\httpdocs\</code></p>
  
  <p>However, when I try to do the same from one hostname to another, the open base directory does not work. This is what I am setting:</p>
  
  <p><code>C:\Inetpub\vhosts\domainOne.net\httpdocs\;C:\Inetpub\vhosts\domainTwo.net\httpdocs\</code></p>
  
  <p>I know that this can be quite challenging to achieve with FastCGI and PHP, but surely there is an easy fix?</p>
  
  <p>I have tried giving permissions to the user of the current site, on the other sites folder but this has not worked.</p>
  
  <p>The error being returned (as expected) is the following:</p>
  
  <blockquote>
    <p>Warning: include(): open_basedir restriction in effect.
    File(C:\Inetpub\vhosts\domainOne.net\httpdocs_snippets_global\paths.php)
    is not within the allowed path(s):
    (C:\Inetpub\vhosts\domainTwo.com\httpdocs\;C:\Inetpub\vhosts\domainOne.net\httpdocs)
    in C:\Inetpub\vhosts\domainTwo.com\httpdocs\index.php on line 3
    Warning:
    include(C:\Inetpub\vhosts\domainOne.net\httpdocs_snippets_global\paths.php):
    failed to open stream: Operation not permitted in
    C:\Inetpub\vhosts\domainTwo.com\httpdocs\index.php on line 3</p>
  </blockquote>
  
  <p><strong>So my question is, how do I open the base directory cross domain on a Windows Server running IIS 7, Plesk 11 and PHP 5.3 running as FastCGI Application?</strong></p>
  
  <p>Thanks in advance</p>