从计算机远程访问phpmyadmin属于同一个LAN

我最近在我的CentOS 6.4上安装了myphpadmin。 我可以访问并login到本地主机上的myphpadmin。 但是,当我在CentOS的同一局域网中的其他电脑上inputhttp:// [hostipaddr] / phpmyadmin时,浏览器根本无法访问该页面。 下面是一些当前的configuration。 任何人都可以帮忙……?

config.inc.php文件

$i++; /* Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'http'; /* Server parameters */ $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['compress'] = false; /* Select mysql if your server does not have mysqli */ $cfg['Servers'][$i]['extension'] = 'mysql'; $cfg['Servers'][$i]['AllowNoPassword'] = false; 

phpmyadmin.conf

 <Directory /var/www/html/phpmyadmin/> order allow,deny allow from all </Directory> 

此外,我可以毫无问题地从我的其他电脑存取储存在CentOS的网页。 在使用wireshark和tcpdump之后,我发现服务器(Cent OS)保持重置连接。 (192.168.1.106是我的其他电脑,192.168.1.101是我的CentOS)

 23:29:42.281473 IP 192.168.1.106.55999 > 192.168.1.101.webcache: Flags [S], seq 2559409090, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 23:29:42.281504 IP 192.168.1.101.webcache > 192.168.1.106.55999: Flags [R.], seq 0, ack 2559409091, win 0, length 0 

我已经禁用了CentOS上的iptables服务。

OP表示他通过以下方式解决了这个问题:

这是因为我没有configurationhttpd.conf来允许centos监听端口80和8080。

 Listen 80 Listen 8080