【问题标题】:White screen after migrating wordpress from shared webhosting cpanel to VPS [closed]将 wordpress 从共享虚拟主机 cpanel 迁移到 VPS 后出现白屏 [关闭]
【发布时间】:2016-06-16 15:46:49
【问题描述】:

我将我的 wordpress 博客从共享虚拟主机迁移到基于 centOS 的 VPS。

我执行的步骤

  • 来自 public_html 的 cpanel zip

  • 在 VPS 的 public_html 中解压该 zip

  • 替换了 wp-config.php 中的数据库详细信息

观察

  • domain.com/wp-admin 正在加载,但我无法在里面登录
  • 尝试使用 wget 在 domain.com/wordpress/ 进行全新安装的全新 wp 安装也出现白屏
  • 为了检查数据库尝试在 cpanel 中访问 mysql,它还显示了所有帖子和用户信息。
  • .htaccess 已经存在
  • 日志文件中也没有任何内容

【问题讨论】:

    标签: php wordpress centos migration vps


    【解决方案1】:

    使用 WordPress 调试功能,让空白屏幕开始显示准确的错误、警告和通知。根据显示的错误,您可以确定白屏死机的根本原因并修复您的 WordPress 安装。

    要启用调试功能,请在 wp-config.php 文件中添加以下代码。

    error_reporting(E_ALL); ini_set('display_errors', 1);
    
    define( 'WP_DEBUG', true);
    

    由于您可以访问 WordPress 管理员,因此您还应该尝试卸载缓存插件。

    【讨论】:

      猜你喜欢
      • 2018-05-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-27
      • 2014-08-06
      • 2018-05-08
      • 2015-10-20
      相关资源
      最近更新 更多