首页 > 解决方案 > 本地主机中的 Wordpress 空白页

问题描述

我通过 FTP 下载了 Wordpress 站点,但无法在 wp-admin、主页...

如果我创建一个 test.html 文件,则显示页面空白。

WP_DEBUG 设置为 TRUE,但不返回错误。

我重命名了主题文件夹和插件文件夹,但没有任何反应,空白页。

如果在 index.php 文件中添加此代码 die(Hello World!); 显示消息,所以,它是对 index.php 的访问。

它只发生在本地主机中,在生产环境中它工作正常。

有什么解决办法吗?

标签: phpwordpresswsod

解决方案


You can follow these steps to get started.

  1. Download the wp-content folder from FTP
  2. Export your MySQL database.(You can find DB name from wp-config.php)
  3. install new WordPress on local
  4. replace the wp-content with your downloaded wp-content
  5. Drop all tables of new WordPress and import your downloaded database on local.
  6. update website URL from wp-option table
  7. update table prefix in wp-config.php file

Now your ready to access the live website on local. Once you login the website updates the permalinks. I know this process is long but there is no way you get error.

Happy Migration


推荐阅读