1:修改windows 中的hosts文件
192.168.2.20 phpadmin.test.com
2:配置/etc/httpd/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "/vhost/phpadmin"
ServerName phpadmin.test.com
# ServerAlias .com
# ErrorLog "logs/test_error_log"
# CustomLog "logs/test_access_log" combined
<Directory "/vhost/phpadmin">
Options None
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
3: 安装phpadmin
[[email protected] ~]# tar xf phpMyAdmin-4.4.15.4-all-languages.tar.gz -c /vhost/
[[email protected] vhost]## mv phpMyAdmin-4.4.15.4-all-languages phpadmin
4:修改默认的配置文件
[[email protected] phpadmin]# cp config.sample.inc.php config.inc.php
5:编辑config.php文件
[[email protected] phpadmin]# vim config.inc.php
$cfg[‘blowfish_secret‘] = ‘qafhjkjvjjkvkjkffk‘; 等号后面的随机输入
5:登录phpadmin