A-A+

lnmp1.4的php环境安装laravel遇到的坑

2017年08月15日 Linux 暂无评论 阅读 3,388 views 次

上篇文章介绍了安装完laravel之后一直报500错误,上篇文章就是解决了看不到错误提示的问题。

看到如下的错误提示:

WX20170811-125755

Warning:require():open_basedir restriction in effect.File(/home/wwwroot/test/bootstrap/autoload.php) is not within the allowed path(s):

那么如何解决呢?

进入到nginx配置的目录下/usr/local/nginx/conf

vim fastcgi.conf

(注释掉下面的这条内容)

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

 

最后重启php-fpm  和  nginx

标签:

给我留言

Copyright © 严佳冬 保留所有权利.   Theme  Ality 百度地图 苏ICP备19045515号-2

用户登录

分享到: