Chinaunix首页 | 论坛 | 博客
  • 博客访问: 190149
  • 博文数量: 99
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1045
  • 用 户 组: 普通用户
  • 注册时间: 2014-07-15 14:24
文章分类
文章存档

2015年(9)

2014年(90)

我的朋友

分类: PHP

2014-09-19 15:42:03

Warning: require_once() [function.require-once]: Unable to access ./include/common.inc.php in E:\forumcityheb\index.php on line 12
Warning: require_once(./include/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in E:\forumcityheb\index.php on line 12
Fatal error: require_once() [function.require]: Failed opening required './include/common.inc.php' (include_path='d:/php5/includes') in E:\forumcityheb\index.php on line 12
在网上也google baidu了一下 出现这个问题的还真不少,修改./include/为include/问题解决 
但rewrite加载总是不成功。 
倒腾了半天才发现原来是权限问题,给设置了everyone权限,一切就ok了
最后提醒大家,iis要启用父路径。
方法一:
1、去掉修改 common.inc.php里所有 ‘./   为   ’/   (就是把中间的点去掉),将”index.php”等根目录的php文件里面的./include/….”里的”./”完全删除。就可以正常访问。(之前同事提到过,我测试也是这样。)
2、将网站安装置于二级目录下,使用超链接转向到网站,再安装一切正常。(按照这个说的解决方法,获得灵感。)
3、给予根目录everyone全部权限(获得灵感,但是服务器上是不可能这么设置的) 
方法二:
include_path='.;C:\php5\pear'  
用wamp中的php安装的路径(文件夹不用中文名)
include_path='C:\php5\pear'   
或在php.ini里面有这一行,去掉句首的';',然后重启WEB服务器。
;include_path = ".;d:\AppServ\www\ZendFramework-1.5.0RC1\library"
url:
url:
阅读(3677) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~