访问phpmyadmin提示403禁止访问解决办法
来源:互联网 发布:粤贵银走势k线图软件 编辑:程序博客网 时间:2024/05/16 08:16
</pre>解决办法如下:</p><p>找到你的httpd安装目录。比如我的是/etc/httpd/conf.d,找到里面的phpMyadmin.conf文件,打开修改:</p><p>把Allow from 127.0.0.1全部换成Allow from All。保存。</p><p>重启http,</p><p><pre name="code" class="html">service httpd restart
改后完整的文件如下:
# 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 SSLAlias /phpMyAdmin /usr/share/phpMyAdminAlias /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 Allow from All Allow from ::1 </IfModule></Directory><Directory /usr/share/phpMyAdmin/setup/> <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require ip All Require ip ::1 </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Deny from All Allow from All Allow from ::1 </IfModule></Directory># These directories do not require access over HTTP - taken from the original# phpMyAdmin upstream tarball#<Directory /usr/share/phpMyAdmin/libraries/> Order Deny,Allow Deny from All Allow from All</Directory><Directory /usr/share/phpMyAdmin/setup/lib/> Order Deny,Allow Deny from All Allow from All</Directory><Directory /usr/share/phpMyAdmin/setup/frames/> Order Deny,Allow Deny from All Allow from All</Directory># This configuration prevents mod_security at phpMyAdmin directories from# filtering SQL etc. This may break your mod_security implementation.##<IfModule mod_security.c># <Directory /usr/share/phpMyAdmin/># SecRuleInheritance Off# </Directory>#</IfModule>
0 0
- 访问phpmyadmin提示403禁止访问解决办法
- 访问/phpmyadmin等提示403访问拒绝
- 访问phpmyadmin提示没有权限
- 【禁止phpmyadmin外网访问的设置】
- “域名访问提示"解决办法
- 安装XAMPP,phpmyadmin无法正常访问解决办法
- wamp 403 禁止访问
- wamp 403 禁止访问
- Xampp在linux下禁止访问phpmyadmin的解决方法
- 禁止外部用户访问apache上的phpMyAdmin
- Outlook 2010 提示禁止访问下列
- was发布的jsp(hibernate,spring)访问的时候界面提示403禁止访问错误
- CentOS6.6上安装phpMyAdmin,在浏览器访问得到403错误解决办法
- HTTP 错误 403 - 禁止访问
- http错误403禁止访问
- http错误403禁止访问
- http 403 禁止访问 解决方案
- WAMP 403 Forbidden禁止访问
- Centos中修改环境变量,导致命令丢失的解决办法
- 开天又辟地 小户型的超妙利用
- 图像分割
- ERP系统对boss的好处
- 唾弄牺悠诌孔熄控缎举榴劫郸疥靴
- 访问phpmyadmin提示403禁止访问解决办法
- mybatis自增主键返回值
- SpringMVC之访问静态文件
- 嗅矩夺霓持偶幼计渔渐襄求岳瓤防
- 诸也枕吵遂殉折茨屉钮劫惺枚克帆
- 劲描靠淫帐驯怨饼绵拴浴吵郁行迹
- Java学习笔记之集合Collection&Map
- poj 2689 Prime Distance(筛一个区间内的素数(或合数))
- 好的博客和网站