1

我有一个网站,使用多站点 WordPress 设置构建。

我在网上遇到了以下建议:

最好强制使用基本目录(例如:“/var/www/”)以防止 PHP 访问文件系统中的其他目录。

我应该设置什么路径?

  1. 主页/我的网站/
  2. 主页/mysite/public_html
  3. 主页/mysite/public_html/something-else

编辑:为了更准确的上下文,我正在通过 WHM 配置 open_basedir 来管理 VPS 上的多个网站。

4

1 回答 1

1

DOCUMENT_ROOT should always be open_basedir.

Is your wp installed in this dir? If so, wp automatically read the right dir in multisite mode from that, so your open_base_dir should be your document_root

于 2014-12-01T14:59:54.437 回答