在config.php中加密Roundcube密码。

问题描述 投票:0回答:1

我有一个roundcube设置,但是在config.php中,数据库连接的格式是mysql:/username:password@localhostDatabase_name。

这个密码是纯文本的,这显然不是一个好主意,我怎么能让它加密呢?你会认为这将是标准的

php password-encryption roundcube
1个回答
0
投票

在你的.htaccess中阻止访问

<files config.php>
order allow,deny
deny from all
</files>
© www.soinside.com 2019 - 2024. All rights reserved.