5/ Next, install the module. For LAMPP, you'll need to tell the compiler where to find libmysqlclient.so and mysql.h with the following compile directives :"-L" and "-I" =>
root> /opt/lampp/bin/apxs -c -L/opt/lampp/lib/mysql -I/opt/lampp/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c# to generate the module

6/ Next, install the object file in the /opt/lampp/modules directory:
root>apxs -i mod_auth_mysql.la #to install in modules/
you can check that the library is installed by checking the presence of /opt/lampp/modules/mod_auth_mysql.so

7/ Modify your /opt/lampp/etc/httpd.conf by adding the following line in the "Dynamic Shared Object (DSO) Support" section:
LoadModule mysql_auth_module modules/mod_auth_mysql.so