windows系统下php集成环境phpStudy切换BT宝塔

由于新业务需求,公司新框架从lumen换到laravel,但是php版本问题,无法通过升级解决,只能切换集成环境,从php7.3.4升级到php7.4.3

1.卸载phpstudy,迁移项目到新目录

2.下载安装宝塔面板

宝塔Windows面板 - 宝塔面板 (bt.cn)

安装完成后按照提示链接进入,保存

3.软件商店安装环境依赖

 4.网站添加本地站点和域名

设置中,composer install和伪静态设置

 访问网站,报错如下

Warning: file_exists(): open_basedir restriction in effect. File(D:\wwwroot\xxx\public/../storage/framework/maintenance.php) is not within the allowed path(s): (d:/wwwroot/xxx/public/;C:/Windows/Temp/;C:/Temp/;D:/app/BtSoft/temp/session/) in D:\wwwroot\xxx\public\index.php on line 19

进入宝塔,找到php管理,打开配置文件,搜索open_basedir

去掉;添加网站根路径

 成功进入网站首页

猜你喜欢

转载自blog.csdn.net/qq_33665793/article/details/131477638
今日推荐