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
[root@master1 ~]# tar xf phpMyAdmin-4.4.15.4-all-languages.tar.gz -c /vhost/
[root@master1 vhost]## mv phpMyAdmin-4.4.15.4-all-languages phpadmin
4:修改默认的配置文件
[root@master1 phpadmin]# cp config.sample.inc.php config.inc.php
5:编辑config.php文件
[root@master1 phpadmin]# vim config.inc.php
$cfg[‘blowfish_secret‘] = ‘qafhjkjvjjkvkjkffk‘; 等号后面的随机输入
5:登录phpadmin
本文出自 “centos6 运维学习” 博客,请务必保留此出处http://wskfnso.blog.51cto.com/4025557/1761901
原文地址:http://wskfnso.blog.51cto.com/4025557/1761901