Home php教程 php手册 phpmyadmin中禁止外网使用的方法

phpmyadmin中禁止外网使用的方法

Jun 06, 2016 pm 08:18 PM
phpmyadmin use Extranet prohibit

这篇文章主要介绍了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程序设计有所帮助。

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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to set primary key in phpmyadmin How to set primary key in phpmyadmin Apr 07, 2024 pm 02:54 PM

How to set primary key in phpmyadmin

Where does the wordpress database exist? Where does the wordpress database exist? Apr 15, 2024 pm 10:39 PM

Where does the wordpress database exist?

How to add foreign keys in phpmyadmin How to add foreign keys in phpmyadmin Apr 07, 2024 pm 02:36 PM

How to add foreign keys in phpmyadmin

What software is crystaldiskmark? -How to use crystaldiskmark? What software is crystaldiskmark? -How to use crystaldiskmark? Mar 18, 2024 pm 02:58 PM

What software is crystaldiskmark? -How to use crystaldiskmark?

What is the password for the phpmyadmin account? What is the password for the phpmyadmin account? Apr 07, 2024 pm 01:09 PM

What is the password for the phpmyadmin account?

How to delete data table in phpmyadmin How to delete data table in phpmyadmin Apr 07, 2024 pm 03:00 PM

How to delete data table in phpmyadmin

Where is the phpmyadmin log? Where is the phpmyadmin log? Apr 07, 2024 pm 12:57 PM

Where is the phpmyadmin log?

why phpmyadmin access denied why phpmyadmin access denied Apr 07, 2024 pm 01:03 PM

why phpmyadmin access denied

See all articles