RedHat Linux 8服务器内外无法访问phpMyAdmin问题求助
问题:RedHat Linux 8上phpMyAdmin无法内外访问
环境与问题概述
- RedHat Linux 8服务器,LAMP栈(Apache、MySQL、PHP)安装正常
- phpMyAdmin安装后,内部curl访问返回301重定向错误,外部浏览器访问返回403禁止
内部curl访问详情
执行命令:
curl 10.64.100.224/phpMyAdmin/
返回内容:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="http://10.64.100.224/phpMyAdmin/">here</a>.</p> </body></html>
外部浏览器访问详情
访问地址:http://10.64.100.224/phpMyAdmin/
提示内容:
Forbidden You don't have permission to access this resource.
当前phpMyAdmin.conf配置
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 all granted </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Deny from All Allow from 127.0.0.1 Allow from ::1 </IfModule> </Directory> <Directory /usr/share/phpMyAdmin/setup/> <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require all granted </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Deny from All Allow from 127.0.0.1 Allow from ::1 </IfModule> </Directory>
请求帮助
需排查问题,实现服务器内部及外部均可正常访问phpMyAdmin。
内容的提问来源于stack exchange,提问作者MisterJay
相关产品推荐
相关产品推荐

