Install mod_auth_mysql in SVN for MySQL Authentication

Source: Internet
Author: User
Software to be installed in advance: svn; apache2.2.x; mysql5.1 Objective: To achieve apache mysql Authentication through the mod_auth_mysql module, download the software mod_auth.

Software to be installed in advance: svn; apache2.2.x; mysql5.1 Objective: To achieve apache mysql Authentication through the mod_auth_mysql module, download the software mod_auth.

Software to be installed in advance: svn, apache2.2.x, and mysql5.1

Objective: To implement apache mysql Authentication through the mod_auth_mysql Module

Software to be downloaded: mod_auth_mysql ,:

There is a compiled mod_auth_mysql.so for apache2.2.x, which requires libmysqlclient. so.15

You can also compile and install the source code. In this article, select the source code installation method.

Follow the install instructions. Because apache is not installed in the default path, you can compile files in two ways.

Modify the mod_auth_mysql.c file, and set # include Change to # include
Add-I/mysql_install_path/include-L/mysql_install_path/lib to apxs-cia-lmysqlclient mod_auth_mysql.c.
Either method can be compiled normally. Here we use the first method to execute apxs-cia-lmysqlclient mod_auth_mysql.c. If the apache installation directory is not set to an environment variable, you need to specify the apxs path/apache_install_path/bin/apxs-cia-lmysqlclient mod_auth_mysql.c.

Compiled and executed. The system prompts that the installation is successful.

If an error occurs during compilation,/usr/bin/ld: cannot find-lmysqlclient

Solution: apt-get install libmysqlclient15-dev

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.