Php GCP-Wordpress主页未显示

Php GCP-Wordpress主页未显示,php,wordpress,google-cloud-platform,google-compute-engine,Php,Wordpress,Google Cloud Platform,Google Compute Engine,我刚刚在GCP Compute Engine上部署了一个wordpress映像,每当我访问站点的IP地址时,它只显示标准的apache“it works!”页面,但站点上的所有其他链接都正常工作 站点IP-http:// /wp-admin工作正常,例如,Hello-World-post工作正常(http:///index.php/2017/05/21/hello-world/) 当我转到/var/www/html/index.php时,我得到: <?php define('W_USE_T

我刚刚在GCP Compute Engine上部署了一个wordpress映像,每当我访问站点的IP地址时,它只显示标准的apache“it works!”页面,但站点上的所有其他链接都正常工作

站点IP-http://

/wp-admin工作正常,例如,Hello-World-post工作正常(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/中登录,您将看到一个文件:debiandefault_index.html,它覆盖index.php文件。您需要运行以下命令:

sudo rm debiandefault_index.html

然后它就会起作用了。我是个白痴,但会把答案贴出来

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

sudo rm debiandefault_index.html
那就行了