解决lnmp环境运行laravel open_basedir restriction in effect 问题

报错问题:

Warning: require(): open_basedir restriction in effect. File(/home/wwwroot/ekee/bootstrap/app.php) is not within the allowed path(s): (/home/wwwroot/ekee/public/:/tmp/:/proc/) in /home/wwwroot/ekee/public/index.php on line 13

Warning: require(/home/wwwroot/ekee/bootstrap/app.php): failed to open stream: Operation not permitted in /home/wwwroot/ekee/public/index.php on line 13

Fatal error: require(): Failed opening required '/home/wwwroot/ekee/public/../bootstrap/app.php' (include_path='.:/usr/local/php/lib/php') in /home/wwwroot/ekee/public/index.php on line 13
 

通过上网搜索各种办法,发现并无任何卵用。


小编的解决的办法是打开php.ini,将open_basedir设置问空,没启用的先启用设置默认值为空 即可