VPS侦探论坛

 找回密码
 注册
查看: 3398|回复: 2

lnmp1.4-lamp 安装后运行laravel报错

[复制链接]
发表于 2017-8-4 14:02:29 | 显示全部楼层 |阅读模式

运行后 报这个错误Warning: require(): open_basedir restriction in effect. File(/home/wwwroot/excsky.com/bootstrap/autoload.php) is not within the allowed path(s): (/home/wwwroot/excsky.com/public/:/tmp/:/proc/) in /home/wwwroot/excsky.com/public/index.php on line 22

Warning: require(/home/wwwroot/excsky.com/bootstrap/autoload.php): failed to open stream: Operation not permitted in /home/wwwroot/excsky.com/public/index.php on line 22

Fatal error: require(): Failed opening required '/home/wwwroot/excsky.com/public/../bootstrap/autoload.php' (include_path='.:/usr/local/php/lib/php') in /home/wwwroot/excsky.com/public/index.php on line 22

也在php.ini中修改了open_basedir  也不管用。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-8-4 21:02:20 | 显示全部楼层
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-8-7 13:10:13 | 显示全部楼层

安装laravel 后,要更改 bootstrap/  storage/   的读写权限,还要把 /usr/local/nginx/conf/fastcgi.conf   中 最后一行 fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/"   注释掉
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-18 02:41 , Processed in 0.025854 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表