Closed Yue-plus closed 1 year ago
.....file_get_contents(/var/www/blessing-skin/.env): Failed to open stream: No such file or....... 有没有可能他找不到.env,或者他没有读取权限
这个日志可能是刚安装的时候生成的,我这边带特殊符号的密码在 .env
里删掉引号就不行了:
特殊符号不带引号,可能不会被正确认为是一个字符串值,可能会被认定为语法错误呢
特殊符号不带引号,可能不会被正确认为是一个字符串值,可能会被认定为语法错误呢
求求修修这个bug,我设个带符号的强密码改来改去发现还是配置文件的锅。
安装时那个数据库配置表单填密码保存到 .env
文件的时候默认带个引号就可以了。
Blessing Skin 版本
6.0.2
PHP 版本
8.1
出现问题时所使用的浏览器
Microsoft Edge
您正在使用的 Web Server
Apache
您正在使用宝塔吗?
出现了什么问题?
数据库密码中包含特殊符号(例如
!@#$%^&*()
之类的)会无法安装手动改
.env
文件,给DB_PASSWORD=
的内容加上引号就可以了。应该是保存密码到 .env 文件的时候没带引号,导致读取的时候没识别成字符串。
错误日志
重现步骤
此处输入了正确的密码,但仍然提示密码错误