开发者社区 问答 正文

nginx服务器,开了一个二级域名,导致错误,求教!

Warning: require() [function.require]: open_basedir restriction in effect. File(../common.inc.php) is not within the allowed path(s): (/tmp/) in /alidata2/zzyycc/wap/index.php on line 8

Warning: require(../common.inc.php) [function.require]: failed to open stream: Operation not permitted in /alidata2/zzyycc/wap/index.php on line 8

Fatal error: require() [function.require]: Failed opening required '../common.inc.php' (include_path='.:/a/apps/php-5.2.17/lib/php') in /alidata2/zzyycc/wap/index.php on line 8

欢迎大神指点!

展开
收起
q31296153 2014-10-11 15:48:30 5521 分享
分享
版权
举报
3 条回答
写回答
取消 提交回答
  • 回2楼icedream的帖子
    请问是在PHP.ini 中设置,还是在nginx 的虚拟主机配置文件中设置?
    2014-10-11 17:54:40 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论
  • Renginx服务器,开了一个二级域名,导致错误,求教!
    open_basedir 设置一下,看起来应该是添加 /alidata2/zzyycc/wap 和 /tmp
    2014-10-11 16:56:59 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论
  • Renginx服务器,开了一个二级域名,导致错误,求教!
    提问时应注明操作系统、系统版本等这些描述。

    试着检查下目录/文件权限, 看看这方面的设置有没有问题;
    2014-10-11 16:06:54 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论