本来是要记录下关于这个报错的一些问题,但是发现freekan安装不了的,也是这几个问题,索性就在这里总结一下程序安装时出现的一些问题。

Whoops, looks like something went wrong.

直接把源码里根目录.env文件的APP_KEY值复制下来修改config/app.php内key的值
Whoops, looks like something went wrong.
Whoops, looks like something went wrong.
'key' => env('APP_KEY','base64:R+8tyPpcbK6ELMheXa4D8hsxdVvXDilVUSFCFqaH8vY='), 这里的值只要两处相同就可以(注意是你源码里生成的值,而不是我上面这个)
这个APP_KEY也可通过php artisan key:generate生成;

php错误提示open_basedir restriction in effect

Whoops, looks like something went wrong.
这个open_basedir在php.ini里可以设定,但是之后还是会有错误,所以我在分享源码的页面也说明了,install/1出现错误的话,就改成install/2访问就行了
Whoops, looks like something went wrong.

数据库连接错误

这个错误遇到的很少,就是有一次有个小伙伴在安装的时候,不小心把2改成了3,直接跳过了数据库信息填写,安装成功,然后首页打不开
Whoops, looks like something went wrong.
这个问题,可以直接删除storage/app/public/install/install.lock文件来重新安装。

本文作者:Author:     文章标题:网站安装时出现Whoops, looks like something went wrong.
本文地址:https://www.mosq.cn/post-446.html     
版权说明:若无注明,本文皆为“森七博客”原创,转载请保留文章出处。
阿里云广告 淘宝优惠券
Last modification:February 15th, 2020 at 10:40 pm
If you think my article is useful to you, please feel free to appreciate