黄聪:最新版wordpress出现:require(wp-blog-header.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/archive/2012/07/02/2573663.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值