thinkPHP5配置nginx环境无法打开(require(): open_basedir restriction in effect. File(/mnt/hgfs/root/tp5/thinkphp/start.php) is not within the allowed path(s)

今天想把玩一下tp5,结果怎么都无法访问,每次都是报500错误,我把错误提示都打开看到下面的错误

require(): open_basedir restriction in effect. File(/mnt/hgfs/root/tp5/thinkphp/start.php) is not within the allowed path(s): (/mnt/hgfs/root/tp5/public/:/tmp/:/proc/) 

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

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

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

  thinkPHP5配置nginx环境无法打开 ,每次都是报500错误

4,重启 service nginx restart 

5,搞定:

  thinkPHP5配置nginx环境无法打开 ,每次都是报500错误


转载地址:http://www.cnblogs.com/spicy/p/6944981.html



相关文章:

  • 2021-08-09
  • 2022-12-23
  • 2021-06-08
  • 2021-06-02
  • 2021-06-11
  • 2022-02-07
  • 2022-01-17
  • 2021-12-30
猜你喜欢
  • 2022-02-22
  • 2021-07-04
  • 2021-11-25
  • 2021-10-18
  • 2022-01-01
  • 2022-12-23
  • 2021-09-21
相关资源
相似解决方案