phpMyAdmin the method of prohibiting the use of the outside network, phpMyAdmin prohibit the external network _php tutorial

Source: Internet
Author: User

phpMyAdmin prohibit the use of the external network method, phpMyAdmin prohibit the external network


This paper describes the method of prohibiting the use of extranet in phpMyAdmin. Share to everyone for your reference. Here's how:

First, locate the phpmyadmin.conf in the phpMyAdmin folder
The following configuration can be seen in the file
Copy the Code code as follows:
Options Indexes followsymlinks MultiViews
AllowOverride All
Order Deny,allow
Deny from all
Allow from 127.0.0.1

Find Deny from all means prohibit all access, but allow access from 127.0.0.1
Then we'll delete allow from 127.0.0.1
and modify the Deny from all to allow from all
It means to allow access from all addresses

Save the modified configuration file and restart the server to access it with the domain name.

Forbidden
You don't have permission to access/phpmyadmin/index.php on this server.
If this is the case, please open Apache httpd.conf and
Copy the Code code as follows:
Options FollowSymLinks
AllowOverride None
Order Deny,allow
Deny from all

Revision changed to
Copy the Code code as follows:
Options FollowSymLinks
AllowOverride None
Order Deny,allow
Deny from None

You can do it.

I hope this article is helpful to everyone's PHP programming.


phpMyAdmin How to set up the domain name for external network access

online see, first, open the LAN access profile: Select the apachehttpd.conf search keyword deny from, you will find a deny from under a row allow from 127.0.0.1, then modify the 127.0.0.1 to all, which is allow everyone to access, and restart the Apache service to allow access to the extranet. Second, open phpMyAdmin external access permissions (this feature can be opened, for database security is not recommended to open) Locate the alias directory in the Wamp installation directory, modify the phpmyadmin.conf configuration file, as with httpd.conf, the Allow The from 127.0.0.1 is modified to: allows from all. Third, set the database must enter the user name password login, configuration file modification: config.inc.php First please modify the database password, installed by clicking on the Wamp tray icon phpmyadmin access to the database, in the middle of the phpMyAdmin page "permissions", You can see the "User at a Glance", there is a line of user information below, that is, rootlocalhost this line, click on the right side of this line "Edit Permissions" icon, find "Change Password" on the new page, set the password for the root user, and click "Execute". Then modify the configuration file: config.inc.php, this file path is: \wamp\apps\phpmyadmin3.1.1, find $cfg["Servers" [$i] [' password '] = "; modify it $cfg [' Servers '] [$i] [' password '] = ' You set the password '; re-open the phpMyAdmin to complete the visit. |! q$ m ' t+ P G3 r]8 u continue, config.inc.php, will be configured $cfg[' Servers ' [$i] [' auth_type '] = ' config ', modified to $cfg[' Servers ' [$i] [' Auth_type ' ] = ' cookie '; then add a line below this line: $cfg [' blowfish_secret '] = ' fslk3xkl319sf '; Here you can enter the alphanumeric numbers in quotation marks.
 

How can I let the outside people login not to my phpMyAdmin page

Modify the URL jump in the config file under phpMyAdmin. So the external network on the law to jump!

http://www.bkjia.com/PHPjc/906113.html www.bkjia.com true http://www.bkjia.com/PHPjc/906113.html techarticle phpMyAdmin prohibit the use of the external network method, phpMyAdmin prohibit the external network This paper describes the phpMyAdmin of the method of prohibiting the use of external networks. Share to everyone for your reference. The specific method is as follows: ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.