下載mod_auth_mysql.tar.gz,解壓后進(jìn)行目錄
#cd mod_auth_mysql
運(yùn)行下列代碼,進(jìn)行模塊鏈接
#/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
#因?yàn)閎ugzilla在default下是用的是crypt,所以這用的是crypt。請(qǐng)注意在不同的#mod_auth_mysql下這個(gè)配制有一點(diǎn)不一樣!
AuthMySQLPwEncryption crypt
</Location>
下載的rpm包有四個(gè):
Scmbug-common
Scmbug-doc
Scmbug-server
Scmbug-tools
安裝時(shí)提供docbook-utils和Mail::sendmail模塊,安裝上即可.
注意:若安裝tar包,則運(yùn)行以下命令:
bash$ ./configure
bash$ make
bash# make install-common
bash# make install-doc
bash# make install-tools
bash# make install-server