下载mod_auth_mysql.tar.gz,解压后进行目录
#cd mod_auth_mysql
运行下列代码,进行模块链接
#/usr/local/apache/bin/apxs
–C –I /usr/local/mysql/include/mysql
–L /usr/local/mysql/lib/mysql
–lmysqlclient –lm lz /home/software/mod_auth_mysql/mod_auth_mysql.c
#/usr/local/apache/bin/apxs –I /home/software/mod_auth_mysql/mod_auth_mysql.a
重新修改apache配置文件httpd.conf
LoadModule mysql_auth_module /usr/local/mysql/lib/mysql/.libs/mod_auth_mysql.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath /home/svnroot/repository/
AuthzSVNAccessFile /home/svnroot/repository/authz.conf
AuthType Basic
AuthName "Subversion.zoneyump"
AuthUserFile /home/svnroot/repository/authfile
Require valid-user
AuthMySQLEnable on
AuthMySQLHost localhost
AuthMySQLUser bugs
AuthMySQLPassword 123
AuthMySQLNameField login_name
AuthMySQLPasswordField cryptpassword
#因为bugzilla在default下是用的是crypt,所以这用的是crypt。请注意在不同的#mod_auth_mysql下这个配制有一点不一样!
AuthMySQLPwEncryption crypt
</Location>
下载的rpm包有四个:
Scmbug-common
Scmbug-doc
Scmbug-server
Scmbug-tools
安装时提供docbook-utils和Mail::sendmail模块,安装上即可.
注意:若安装tar包,则运行以下命令:
bash$ ./configure
bash$ make
bash# make install-common
bash# make install-doc
bash# make install-tools
bash# make install-server