【问题标题】:Installing Wordpress in /var/www/html在 /var/www/html 中安装 Wordpress
【发布时间】:2017-08-29 13:37:39
【问题描述】:

我在 /var/www/html 中安装了 Wordpress。几天前我在本地的虚拟机上做了这个。只需在浏览器中输入机器 IP,我就可以通过浏览器查看 Wordpress。

现在我在不同的服务器上做了同样的事情。如果我通过浏览器调用服务器的 IP,我只会在“Index of /”下看到文件夹 html,我必须单击 html 才能查看 Wordpress。

对不起,我的描述含糊不清,但也许有人可以帮助我配置第二台服务器,使其表现得像第一个服务器一样? 第一个在带有 Apache 2.4.18 的 Ubuntu Server 16.04.2 LTS 上运行,第二个在带有 Apache 2.4.10 的 Debian 8.9 上运行。

【问题讨论】:

    标签: php html wordpress apache


    【解决方案1】:

    在一台机器上DocumentRoot/var/www/html,但在另一台机器上是/var/www

    您已经在 /var/www/html 中安装了 Wordpress。

    您需要:

    • 在真实的DocumentRoot 中安装 Wordpress(即最后没有html
    • 将 Apache 配置文件中的 DocumentRoot 选项更改为 /var/www/html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-02-16
      • 2019-04-22
      • 2015-09-22
      • 2022-01-09
      • 1970-01-01
      • 2017-02-28
      • 2020-07-04
      相关资源
      最近更新 更多