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 搞定

  • 相关阅读:
    pandas 和反射联合使用
    反射
    获取Cookie 遇到的问题
    接口自动化之 问题
    接口自动化之 数据库操作
    logging日志模块
    数据驱动 --ddt
    logging--日志打印模块
    APP专项测试5 --PFS
    Monkey 参数
  • 原文地址:https://www.cnblogs.com/brady-wang/p/9987183.html
Copyright © 2011-2022 走看看