我收到了这些错误 - 据我所知,它似乎与PHP规则或我的vhosts有关。
我发现如何解决它很少。
基本上我们正在尝试为实际网站设置预览/开发网站,并获取这些错误。该站点是Windows服务器上的Drupal站点(基于PHP,基于MySQL)。
如何摆脱此错误并使预览网站正常工作?
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5http://preview.domain.com/includes/bootstrap.inc) is not within the allowed path(s): (C:/Inetpub/vhosts/domain.com\;C:\windows\Temp\) in C:\Inetpub\vhosts\domain.com\preview.domain.com\httpdocs\index.php on line 21
Warning: require_once(C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5http://preview.domain.com/includes/bootstrap.inc) [function.require-once]: failed to open stream: Operation not permitted in C:\Inetpub\vhosts\domain.com\preview.domain.com\httpdocs\index.php on line 21
Fatal error: require_once() [function.require]: Failed opening required 'C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5http://preview.domain.com/includes/bootstrap.inc' (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\domain.com\preview.domain.com\httpdocs\index.php on line 21
答案 0 :(得分:1)
您的问题不在open_basedir中,而是在此路径中:“C:\ Program Files(x86)\ Parallels \ Plesk \ Additional \ PleskPHP5http://preview.domain.com/includes/bootstrap.inc”
第21行的C:\ Inetpub \ vhosts \ domain.com \ preview.domain.com \ httpdocs \ index.php会发生什么?