GCP - Wordpress 主页未显示



我刚刚在GCP计算引擎上部署了一个wordpress图像,每当我访问站点的IP地址时,它只会显示标准的apache"它有效!"页面,但网站上的所有其他链接都在工作。

站点 IP - http://<>

/wp-admin 工作正常,例如,Hello World 帖子工作正常 (http://<>/index.php/2017/05/21/hello-world/(

当我转到/var/www/html/index 时.php我得到:

<?php
define('W_USE_THEMES', true);
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

任何帮助将不胜感激

我是个白痴,但会发布答案。

如果你在/var/www/html/中,你会看到一个覆盖 index.php 文件的文件:debiandefault_index.html。您需要运行以下命令:

sudo rm debiandefault_index.html

然后它会工作

最新更新