EDV:Apache2 mysql auth

From KIP Wiki
Revision as of 12:51, 1 October 2007 by Weis (talk | contribs)
(diff) ↠Older revision | Latest revision (diff) | Newer revision → (diff)
⧼kip-jumptonavigation⧽⧼kip-jumptosearch⧽

mod_auth_mysql

mod_auth_mysql installieren auf debian etch.


 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