Apache uses MySQL Authenticated users

Source: Internet
Author: User

Using MySQL for authentication

?

1th step: Download the MySQL authentication module and rename it to mod_auth_mysql.so file, and save it in Apache modules directory

2nd step: Apache to load this function module

LoadModule the directory where the module name resides

Example:

???? LoadModule Mysql_auth_module modules/mod_auth_mysql.so

3rd Step: Establish the authentication database

???? User password stored data table structure, must have User name fields, password field, user Group field

4th Step: Configure authentication

A: Authentication domain

AuthName ' www.234.com '

B: Authentication method

AuthType Basic

C: Turn on MySQL authentication

Authmysqlenable on

D: Set up the authentication host

Authmysqlhost localhost

E: Authenticated user name

Authmysqluser Root

F: Authentication password

Authmysqlpassword Root

G: Certified Database

Authmysqldb httpd

H: Certified Tables

Authmysqlusertable Auth

I: Authenticated user name field

Authmysqlnamefield user_name

J: Certified Password field

Authmysqlpasswordfield User_password

K: Password encryption method

Authmysqlpwencryption MD5

L: Certified User

Require Valida-user

Example:

Apache uses MySQL Authenticated users

Related Article

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.