IIS下require php文件提示不存在

1500阅读 0评论2016-09-27 wwmshe
分类:系统运维

IIS下某个php站点访问异常,提示require的文件不存在:
Warning: require(app/config/constants.php) []: failed to open stream: No such file or directory
Failed opening required 'app/config/constants.php' (include_path='c:/windows/PHP526/PEAR')

但实际上是存在的。

此问题有两种解决方案:
1、赋予站点根目录的上层目录,执行php程序所对应的账户的读取权限。
2、升级php版本。
上一篇:memcache安装失败: error: zlib.h: No such file or directory
下一篇:nginx下/index.html到/的301跳转