phpMyAdminインストール/設定
************************************************************
[root@falcon21 ~]# svn checkout https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/tags/STABLE/phpMyAdmin phpmyadmin
[root@falcon21 ~]# mv phpmyadmin/ /var/www/
[root@falcon21 ~]# cp /var/www/phpmyadmin/config.sample.inc.php /var/www/phpmyadmin/config.inc.php
[root@falcon21 ~]# chmod 660 /var/www/phpmyadmin/config.inc.php
mkpasswdコマンドでランダムな46桁の文字列を取得
[root@falcon21 ~]# mkpasswd -l 46
[root@falcon21 ~]# vi /var/www/phpmyadmin/config.inc.php
$cfg['blowfish_secret'] = '>'46桁の文字列;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['DefaultLang'] = 'ja-utf-8';
/*
* End of servers configuration
*/
----------------
[root@falcon21 ~]# chown -R root.apache /var/www/phpmyadmin/
Apache設定
[root@falcon21 ~]# vi /etc/httpd/conf.d/phpmyadmin.conf
Alias /phpmyadmin /var/www/phpmyadmin
<Location /phpmyadmin>
Require ip 192.168.2.0/24 192.168.0.0/24 192.168.1.0/24
</Location>
~
[root@falcon21 ~]# systemctl reload httpd
****************************************************************