apache2, mod_mysql_auth, debian etch

Wer ebenfalls verzweifelt mod_mysql_auth für Apache2 unter Debian Etch sucht, dem sei gesagt, dass es aus lizenztechnischen Gründen in Debian Etch nicht mehr enthalten ist.

Man kann jedoch das Module relativ einfach nachinstallieren:

mkdir /root/src
aptitude install apache2-prefork-dev libmysqlclient15-dev
cd /root/src/
mkdir auth_mysql
cd auth_mysql
wget http://download.nuxwin.com/apache2.2-modules/auth_mysql/mod_auth_mysql-3.0.0.tar.gz
wget http://download.nuxwin.com/apache2.2-modules/auth_mysql/patch/apache2.2.diff
tar xzf mod_auth_mysql-3.0.0.tar.gz
mv apache2.2.diff mod_auth_mysql-3.0.0/
cd mod_auth_mysql-3.0.0
patch -p0 < apache2.2.diff mod_auth_mysql.c
apxs2 -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c
apxs2 -i mod_auth_mysql.la
echo “LoadModule mysql_auth_module /usr/lib/apache2/modules/mod_auth_mysql.so” > /etc/apache2/mods-available/auth_mysql.load
a2enmod auth_mysql
/etc/init.d/apache2 force-reload