我安装了 phpmyadmin,但是当我在网站上时: ip/phpmyadmin 我尝试登录,但我无法登录,它不会重定向我,所以我将其删除并重新安装。
从那时起我什至无法连接到该网站。在 /etc/httpd/phpMyAdmin.conf 文件中,我已添加我的 ips 四次,如下所示......
# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
<Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
Require ip 127.0.0.1
Require ip ::1
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All …Run Code Online (Sandbox Code Playgroud)