Centos5.11 //IP/phpmyadmin 远程无法登入

异地登入phpmyadmin时,会出现“You don't have permission to access /phpmyadmin/ on this server.”这是因为配置文件:/etc/httpd/conf.d/phpMyAdmin.conf中,限制了种从本机登入,以保证数据库安全。

解除方法:vi /etc/httpd/conf.d/phpMyAdmin.conf

<Directory /usr/share/phpMyAdmin/>
Deny from All
Allow from 127.0.0.1
</Directory>

改为
<Directory /usr/share/phpMyAdmin/>
Allow from All
</Directory>

*********************************************
重启服务:
/etc/init.d/httpd start
/etc/init.d/mysqld start
/etc/init.d/httpd restart

原文地址:https://www.cnblogs.com/k98091518/p/7676686.html