宝塔安装后报错
Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/lrs/vendor/autoload.php) is not within the allowed path(s): (/www/wwwroot/lrs/public/:/tmp/) in /www/wwwroot/lrs/public/index.php on line 24
Warning: require(/www/wwwroot/lrs/vendor/autoload.php): failed to open stream: Operation not permitted in /www/wwwroot/lrs/public/index.php on line 24
Fatal error: require(): Failed opening required ‘/www/wwwroot/lrs/public/../vendor/autoload.php’ (include_path=’.:/www/server/php/72/lib/php’) in /www/wwwroot/lrs/public/index.php on line 24
composer insatll 后还是这个错误
已经composer install了
:joy: nginx 版本没对 郁闷得很
把目录下的.user.ini 删掉呢
把这个防跨站攻击勾去掉就可以了
说实话,linux自己搭lnmp也就几条命令的事,没必要用宝塔啥的,这玩意万一有漏洞就是很大的风险。
宝塔对小白确实很方便,可以操作文件,数据库,编辑代码,安装
但还是习惯 apt 安装 LNMP