| 1 |
$Id: INSTALL,v 1.7 2008/01/08 04:47:35 tessus Exp $
|
| 2 |
|
| 3 |
Copyright (c) 2004-2008 Helmut K. C. Tessarek
|
| 4 |
written by Helmut K. C. Tessarek
|
| 5 |
|
| 6 |
http://mod-auth-ibmdb2.sourceforge.net
|
| 7 |
|
| 8 |
Contents:
|
| 9 |
---------
|
| 10 |
|
| 11 |
1) Building the module
|
| 12 |
2) Details on building the module (Linux)
|
| 13 |
3) Installing the manpages
|
| 14 |
|
| 15 |
1) Building the library
|
| 16 |
-----------------------
|
| 17 |
|
| 18 |
Please change the PATH settings and the APXS variable
|
| 19 |
in the makemod script for your environment.
|
| 20 |
|
| 21 |
run as root: ./makemod
|
| 22 |
|
| 23 |
2) Details on building the module
|
| 24 |
---------------------------------
|
| 25 |
|
| 26 |
DB2PATH=/home/db2inst1/sqllib
|
| 27 |
EXTRA_LFLAG="-Wl,-rpath,$DB2PATH/lib"
|
| 28 |
|
| 29 |
apxs -c -ldb2 $EXTRA_LFLAG mod_auth_ibmdb2.c
|
| 30 |
|
| 31 |
If the sqlcli1.h header file cannot be found, add the -I option to specify the
|
| 32 |
directory where sqlcli1.h can be found.
|
| 33 |
If the db2 library cannot be found, add the -L option to specify the
|
| 34 |
directory where libdb2.so can be found.
|
| 35 |
For example:
|
| 36 |
|
| 37 |
apxs -c -L/home/db2inst1/sqllib/lib -I/home/db2inst1/sqllib/include
|
| 38 |
-ldb2 $EXTRA_LFLAG mod_auth_ibmdb2.c
|
| 39 |
|
| 40 |
To move the DSO to the modules directory:
|
| 41 |
|
| 42 |
apxs -i mod_auth_ibmdb2.la
|
| 43 |
|
| 44 |
As the next step the DB2 environment has to be set in the Apache startscript.
|
| 45 |
You just need to source the db2profile script, which is located in DB2PATH.
|
| 46 |
|
| 47 |
Finally, add the following directive to httpd.conf:
|
| 48 |
|
| 49 |
LoadModule ibmdb2_auth_module modules/mod_auth_ibmdb2.so
|
| 50 |
|
| 51 |
3) Installing the manpages
|
| 52 |
--------------------------
|
| 53 |
|
| 54 |
Change to the ./man directory and run the script
|
| 55 |
maninstall
|