Home > php教程 > php手册 > body text

phpmyadmin中禁止外网使用的方法

WBOY
Release: 2016-06-06 20:18:57
Original
1467 people have browsed it

这篇文章主要介绍了phpmyadmin中禁止外网使用的方法,涉及对配置文件的修改,是非常实用的技巧,需要的朋友可以参考下

本文实例讲述了phpmyadmin中禁止外网使用的方法。分享给大家供大家参考。具体方法如下:

首先,,在phpmyadmin文件夹中找到 phpmyadmin.conf
在文件中能看到如下面一段配置

复制代码 代码如下:


    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
Deny from all
        Allow from 127.0.0.1

找到 Deny from all 意思是禁止所有访问,但允许从 127.0.0.1 访问
那么我们就删除 Allow from 127.0.0.1
并且把 Deny from all 修改为 Allow from all
意思就是允许从所有地址访问

保存修改的配置文件,重启服务器就可以用域名进行访问了。
 
Forbidden
You don't have permission to access /phpMyAdmin/index.php on this server.
出现这种情况请将apache的httpd.conf打开,将

复制代码 代码如下:


    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all

修改为

复制代码 代码如下:


    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from None


就可以了。

希望本文所述对大家的PHP程序设计有所帮助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!