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

这篇文章主要介绍了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
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 AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool