• 技术文章 >php框架 >ThinkPHP

    thinkphp5出现500错误怎么办

    爱喝马黛茶的安东尼爱喝马黛茶的安东尼2019-08-23 09:11:37原创3576

    thinkphp5出现500错误,如下图所示:

    q.png

    相关推荐:《ThinkPHP教程

    require(): open_basedir restriction in effect. File(/home/wwwroot/pic/thinkphp/start.php) is not within 
    the allowed

    解决方法:

    1、我是lnmp1.4 php5.6,php.ini里面的open_basedir 是注释掉的。

    2、查找到是fastcgi问题。

    3、修改fastcgi的配置文件。

    /usr/local/nginx/conf/fastcgi.conffastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";

    修改为

    fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/../:/tmp/:/proc/";

    w.jpg

    4、重启 service nginx restart。

    以上就是thinkphp5出现500错误怎么办的详细内容,更多请关注php中文网其它相关文章!

    声明:本文原创发布php中文网,转载请注明出处,感谢您的尊重!如有疑问,请联系admin@php.cn处理
    专题推荐:thinkphp5 500 错误
    上一篇:thinkphp如何导出word 下一篇:thinkphp5如何开启错误调试
    大前端线上培训班

    相关文章推荐

    • ThinkPHP5是什么时候发布的• thinkphp5是什么• 如何解决ThinkPHP5 HTTP状态码500• ThinkPHP5 使用 JWT 进行加密

    全部评论我要评论

  • 取消发布评论发送
  • 1/1

    PHP中文网