ApacheMySQLAuthentication » History » Version 2
Lutz Suhrbier, 08/10/2007 07:50 PM
1 | 1 | Lutz Suhrbier | |
---|---|---|---|
2 | # Apache [[MySQL]] Authentication |
||
3 | |||
4 | 2 | Lutz Suhrbier | ~~~ |
5 | 1 | Lutz Suhrbier | apt-get install apache2-prefork-dev apache2-prefork-dev |
6 | 155 apt-get -f install |
||
7 | 156 apt-get -f install |
||
8 | 157 apt-get install apache2-prefork-dev apache2-prefork-dev |
||
9 | 158 cd /usr/src/ |
||
10 | 159 mkdir auth_mysql |
||
11 | 160 cd auth_mysql/ |
||
12 | 161 wget http://download.nuxwin.com/apache2.2-modules/auth_mysql/mod_auth_mysql-3.0.0.tar.gz |
||
13 | 162 tar xzf mod_auth_mysql-3.0.0.tar.gz |
||
14 | 163 ls |
||
15 | 164 wget http://download.nuxwin.com/apache2.2-modules/auth_mysql/patch/apache2.2.diff |
||
16 | 165 mv apache2.2.diff mod_auth_mysql-3.0.0/ |
||
17 | 166 cd mod_auth_mysql-3.0.0 |
||
18 | 167 patch -p0 < apache2.2.diff mod_auth_mysql.c |
||
19 | 168 apt-get install patch |
||
20 | 169 patch -p0 < apache2.2.diff mod_auth_mysql.c |
||
21 | 170 apxs2 -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c |
||
22 | 171 apt-get install build-essentials |
||
23 | 172 apxs2 -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c |
||
24 | 173 apt-get install gcc |
||
25 | 174 apxs2 -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c |
||
26 | 175 apt-get install libmysqlclient15-dev |
||
27 | 176 apxs2 -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c |
||
28 | 177 apxs2 -i mod_auth_mysql.la |
||
29 | 178 echo "LoadModule mysql_auth_module /usr/lib/apache2/modules/mod_auth_mysql.so" > /etc/apache2/mods-available/auth_mysql.load |
||
30 | 179 a2enmod auth_mysql |
||
31 | 180 /etc/init.d/apache2 force-reload |
||
32 | 181 /etc/init.d/apache2 force-reload |
||
33 | 182 less /var/log/apache2/access.log |
||
34 | 183 less /var/log/apache2/error.log |
||
35 | 184 less /var/log/auth.log |
||
36 | 2 | Lutz Suhrbier | ~~~ |