2012-06-29 20 views
0

更改open_basedir指令与子域工作通过简单的指令设置为工作绝对没我的服务器上:开基目录跨域

C:\Inetpub\vhosts\domain.net\subdomains\beta\httpdocs\;C:\Inetpub\vhosts\domain.net\httpdocs\

然而,当我尝试从一个主机做同样的到另一个,开放的基地目录不起作用。这是我设置:

C:\Inetpub\vhosts\domainOne.net\httpdocs\;C:\Inetpub\vhosts\domainTwo.net\httpdocs\

我知道,这是相当有难度,实现与FastCGI的和PHP,但肯定有一个简单的办法?

我已经尝试给当前网站,在其他网站文件夹的用户的权限,但这并没有奏效。

错误被返回(如预期)如下:

警告:包括():在效果open_basedir的限制。 文件(C:\ Inetpub \ vhosts \ domainOne.net \ httpdocs_snippets_global \ paths.php) 不在允许的路径内: (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): 未能打开流:操作 ç不允许:\的Inetpub \虚拟主机\ domainTwo.com \的httpdocs \的index.php上线3

所以我的问题是,我该怎么办在Windo上打开基础目录跨域ws服务器运行IIS 7,Plesk 11和PHP 5.3作为FastCGI应用程序运行?

在此先感谢

回答

0

所有排序,开基目录设置为确实是正确的。

我是在向用户添加权限的权利线上,我刚刚添加了错误的用户!

所以很简单,如果遇到这种情况,假设这是您遇到的问题,请确保相关网站的用户对所包含目录的文件夹和文件也具有权限。