黄聪:最新版wordpress出现:require(wpblogheader.php) [function.require]: failed to open stream……的解决办法

今天在服务器上安装Wordpress3.0.4,发现无法安装,首页两行英文:

Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in D:\wwwroot\1\index.php on line 17

Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.;C:\php5\pear') in D:\wwwroot\1\index.php on line 17
 

记得上次安装wordpress的时候就出现过这个问题,好像是权限的问题,而且是父路径权限的总是,因为服务器设置了严格的权限,好像是相对路径./无法使用,解决方法如下:

把index.php里第17行

require(./wp-blog-header.php’);

修改成

require(‘wp-blog-header.php’);

改完以后马上正常了

原文地址:https://www.cnblogs.com/huangcong/p/2573663.html