LoginSignup
2
3

More than 5 years have passed since last update.

phpMyAdmin の blowfish_secret が短すぎます問題解消

Posted at

Ubuntu 14.04.5 LTS サーバ内のデータベースを MySQL から MariaDB にしたついでに phpMyAdmin もアップデートした。すると……

設定ファイルの中に記述されているパスフレーズ(blowfish_secret)が短すぎます。

と phpMyAdmin に怒られてしまい。以下、解決までの道のり。

環境

  • Ubuntu 14.04.5 LTS
  • MariaDB 10.1.21
  • phpMyAdmin 4.6.6

ここを弄る

「phpMyAdmin blowfish_secret」とかでググると /usr/share/phpmyadmin 内のconfig.sample.inc.php を config.inc.php にリネームした上で $cfg['blowfish_secret'] に任意の文字列を設定するという情報がちょこちょこ出てくるが、これちょっと古い。

/etc/phpmyadmin/config.inc.php

// Load secret generated on postinst
if (check_file_access('/var/lib/phpmyadmin/blowfish_secret.inc.php')) {
    require('/var/lib/phpmyadmin/blowfish_secret.inc.php');
}

ということで、弄るのは /var/lib/phpmyadmin/blowfish_secret.inc.php の方。ここに任意の文字列32文字以上を設定する。

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3