zoukankan      html  css  js  c++  java
  • thinkphp5报错

    thinkPHP5配置nginx环境无法打开(require():open_basedirrestrictionineffect.File(/mnt/hgfs/ro

      (2018-07-19 22:05:27)
      分类: linux

    php报错

    PHP Warning:  require(): open_basedir restriction in effect. File(/home/wwwroot/xxx.com/vendor/autoload.php) is not within the allowed path(s): (/home/wwwroot/xxx.com/public/:/tmp/:/proc/) in /home/wwwroot/xxx.com/public/index.php on line 24

    Jul 19 21:55:04 localhost : PHP Warning:  require(/home/wwwroot/xxx.com/vendor/autoload.php): failed to open stream: Operation not permitted in /home/wwwroot/xxx.com/public/index.php on line 24

    Jul 19 21:55:04 localhost : PHP Fatal error:  require(): Failed opening required '/home/wwwroot/xxx.com/public/../vendor/autoload.php' (include_path='.:/usr/local/php/lib/php') in /home/wwwroot/xxx.com/public/index.php on line 24

    1,我是php7 ,php.ini里面的open_basedir 是注释掉的

    2,后来查找到时fastcgi的问题

    3,修改fastcgi的配置文件 /usr/local/nginx/conf/fastcgi.conf   

    thinkPHP5配置nginx环境无法打开(require():open_basedirrestrictionineffect.File(/mnt/hgfs/ro

    重启nginx 搞定

  • 相关阅读:
    session_id 生成原理
    压缩后的数据 要经过 base64_encode 后才能在网络上传送
    MySQL ANALYZE TABLE
    mysql 优化2
    mysql 查询优化
    第归调用
    『GoLang』函数
    『GoLang』控制结构
    『GoLang』语法基础
    『Python』装饰器
  • 原文地址:https://www.cnblogs.com/brady-wang/p/9987183.html
Copyright © 2011-2022 走看看