从一台服务器转移到另一台服务器后,我收到了警告。我已经在数据库中更新了我的网站和主页。警告描述如下。
警告:require(/public_html/wp-blog-header.php)[function.require]:无法打开流:第17行/public_html/index.php中没有此类文件或目录
致命错误:require()[function.require]:无法打开所需' /public_html/wp-blog-header.php'第17行的//public_html/index.php中的(include_path ='。:/ opt / php52 / lib / php')
wp-blog-header.php文件是正确的。放在root。
这是index.php的代码
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );