有谁知道是否可以包含 {WEBSPACEROOT} PHP 5.5.22 的父目录?
这是与 {WEBSPACEROOT} 一起使用的给定结构:
var/www/vhosts/mydomain-a/website
var/www/vhosts/mydomain-a/includepath
var/www/vhosts/mydomain-b/website
var/www/vhosts/mydomain-b/includepath
我要这个:
var/www/vhosts/mydomain-a/website
var/www/vhosts/mydomain-b/website
var/www/vhosts/includepath
我将 Plesk 12 与根服务器一起使用,但无法在 Plesk 的 php 面板中解决该问题。Plesk 似乎忽略了 php.ini。
所以我总是会收到这个错误:
open_basedir restriction in effect. File(../../includepath/include.php) is not within the allowed path(s): (/var/www/vhosts/mysite.com/:/tmp/)
我一直在研究这样的建议,但在我看来,如果他们暗示要解决第一种方法,他们确实喜欢:https ://www.vimp.com/de/web/faq/items/an-example-of- a-vhostconf-with-plesk.html