|
|
发表于 2005-7-30 10:00:15
|
显示全部楼层
建议:
./configure --enable-mods-shared=all
除了默认模块安装需要CONFIGURE,其他需要用APXS
参考
BUILDING mod_auth_mysql
=======================
To build mod_auth_mysql as a DSO:
For either Apache 1.x or Apache 2.x:
apxs -c -lmysqlclient -lm -lz mod_auth_mysql.c
Note: The option -D APACHE2 for Apache 2.x is no longer required. The module
determines the correct version from the Apache header files
If the mysql.h header file cannot be found, add the -I option to specify the
directory where mysql.h can be found.
If the mysqlclient library cannot be found, add the -L option to specify the
directory where libmysqlclient.so can be found.
Example:
apxs -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c
INSTALLING in the Apache Directory
==================================
After building the module, you need to install it to your modules directory.
Apache 1.x:
apxs -i mod_auth_mysql.so
Apache 2.x:
apxs -i mod_auth_mysql.la
Next, add the following directive to httpd.conf:
LoadModule mysql_auth_module modules/mod_auth_mysql.so |
|