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