Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

傻瓜式安装,在最后一步遇到脚本错误 #229

Open
mrshan opened this issue May 15, 2022 · 1 comment
Open

傻瓜式安装,在最后一步遇到脚本错误 #229

mrshan opened this issue May 15, 2022 · 1 comment

Comments

@mrshan
Copy link

mrshan commented May 15, 2022

在最后一步安装界面,显示安装中
image

2秒钟后出现脚本错误就不再安装了,什么原因
image

@bobliaos
Copy link

bobliaos commented May 20, 2022

环境:window10 64 位/phpstudy/nginx1.15.11/php 7.4
遇到同样的问题,解决方法如下:
查看 dispose.php 代码,发现为 sellCode 执行失败.
打开 cmd 发现无法执行 php 命令,遂将 php 加入 path
然后打开 cmd 进入 dispose.php 所在目录,依次执行代码中的脚本:
cd ../../../
php artisan migrate
php artisan generate:sql
php artisan storage:link
php artisan key:generate
php artisan passport:keys --force
php artisan passport:client --password --provider=admins // 此步将控制台输出相应信息,如本段代码描述,复制到 ../../../.env 文件的相应字段
最后将 dispose.php 第21行 $_GET['step'] 直接替换为 6,在网页继续操作即可

推测: sellCode 执行失败会不是是环境配置的问题, composer/php 等环境可在安装说明中进行描述

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants