01 | # cat /etc/redhat-release |
02 | CentOS release 6.7 (Final) |
03 | # rpm -qa|grep phpMyAdmin |
04 | phpMyAdmin-4.0.10.14-1.el6.noarch |
05 | # rpm -qa|grep mysql-server |
06 | mysql-server-5.1.73-5.el6_6.x86_64 |
07 |
08 | # 添加epel源 |
10 |
11 | # 安装相关软件包 |
12 | # yum -y install httpd mysql php php-mysql phpmyadmin |
13 |
14 | # 修改index文件 |
15 | # vi /etc/httpd/conf/httpd.conf |
16 | DirectoryIndex index.php index.html index.html.var |
17 |
18 | # 允许远程登录phpMyAdmin |
19 | # vi /etc/httpd/conf.d/phpMyAdmin.conf |
20 | <IfModule !mod_authz_core.c> |
21 | # Apache 2.2 |
22 | Order Deny,Allow |
23 | Deny from All |
24 | Allow from 1.1.1.2 |
25 | Allow from 127.0.0.1 |
26 | Allow from ::1 |
27 | < /IfModule > |
28 | |
29 | # 重启httpd |
30 | service httpd restart |
31 |
32 | # 登录 |
33 | http: //server_ip/phpmyadmin/ |