2011年4月14日 星期四

ScmBug integration between VisualSVN Server and Mantis on Windows platform

Preparation
1. mantis v1.2.5  ==> http://www.mantisbt.org/
2. VisualSVN Server v2.1.7 ==> http://www.visualsvn.com/server
3. scmbug v0.26.22 ==> http://www.mkgnu.net/scmbug
4. xampp-win32 v1.7.4 ==> http://www.apachefriends.org/zh_tw/xampp-windows.html
5. ActivePerl v5.12.3.1204  ==> http://www.activestate.com/activeperl/downloads
6. Perl modules required for scmbug: Log-Log4perl, Mail-Sendmail-0.79
        Log-Log4perl ==> http://search.cpan.org/~mschilli/Log-Log4perl-1.32/lib/Log/Log4perl.pm
        Mail-Sendmail-0.79 ==> http://search.cpan.org/~mivkovic/Mail-Sendmail-0.79/Sendmail.pm
        DBD-mysql ==> http://search.cpan.org/~capttofu/DBD-mysql-4.018/lib/DBD/mysql.pm
7. diff.exe ==> http://code.google.com/p/sharpdiff
8. nssm ==> http://iain.cx/src/nssm/

Installation
1. VisualSVN Server installation
  * port number must not 443, recommend to 8443
  * binary execution code is installed on "c:\Program Files\VisualSVN Server", but
  * repository folder is installed on d:\Repositories
  * Use subversion authentication

2. xampp-win32 installation
  * d:\xampp
  * no service installed (by default)
  * from XAMPP Control Panel to enable services: Apache and MySql
  * Configuration:
      - first-time: click button Apache Admin... to check status
              * MySQL/PHP/HTTPS/CGI/SSI should be Activated
      - security setting: http://localhost/security/index.php
              * MySql DB administrator: userid=root   password=root123
              * XAMPP directory protection(.htaccess): userid=xamppadmin    password=xamppadmin123
      - phpAdmin
              * userid and password is the same as MySql DB administrator

3. Mantis installation
  * unzip Mantis into d:\xampp\htdocs\
  * modify c:\xampp\htdocs\index.php, replace "xampp" with "mantisbt-1.2.5"
  * First-time configuration: http://localhost/mantisbt-1.2.5/admin/install.php
      - DB Admin userid=root  password=<yourPassword>
      - Web Admin  userid=root  password=<yourPassword>
  * default administrator password = root
  * userid=administrator   password=<yourPassword>

4. ActivePerl installation
  * c:\perl
  * modules needed by scmbug:
      - DBI    (default installed)
      - XML-Simple  (default installed)
      - Log-Log4perl  (
        set HTTP_proxy=http://userid:passwd@proxy3.tw.foxconn.com:3128/
ppm install "http://log4perl.sourceforge.net/ppm/Log-Log4perl.ppd")
      - DBD-mysql  (extract DBD-mysql-4.018.tar\DBD-mysql-4.018\lib into c:\perl\site\lib)
      - Mail-Sendmail  (extract Mail-Sendmail-0.79-ppm.tar\blib\lib into c:\perl\site\lib)

5. Scmbug Installation
  * unzip Scmbug into "c:\program files"
  * modify daemon.conf based on Mantis and Subversion settings
  * cd c:\Program Files\Scmbug\etc\init.d
  * nssm install ScmbugService "c:\Program Files\Scmbug\etc\init.d\scmbug_daemon.bat"
  * Scmbug\bin\scmbug_install_glue.pl --scm=Subversion --product=<Manris Project Name> --repository=file:///d:\Repositories\<SVN ProjectName> --daemon=127.0.0.1 --binary-paths="c:\Program Files\VisualSVN Server\bin"

6. stop ScmbugService
  * net stop ScmbugService
  * nssm remove ScmbugService confirm

沒有留言:

張貼留言