bugzllia档

更新时间:2023-06-14 01:45:53 阅读: 评论:0

窗体顶端
cocoba
安康鱼做法生活是痛苦的,所有我们能感受快乐-相对论
博客园    首页    新随笔    联系    订阅    管理
posts - 11,  comments - 33,  trackbacks - 0
别人写的关于在Windows下安装BugZilla的说明,不错,值得借鉴
Bugzilla Windows安装红宝书

一直寻找合适的Bug Tracking System,网上找了很久,commercial的太贵,还有licence限制,远远超出我等贫民的承受范围。也曾考虑干脆自己写一个算了,但终究未能如愿。对Bugzilla倒是早有所闻,只可惜好像在Linux下比较好安装,在windows上却难上加难。在BugzilladocumentFAQ中可见一斑:
Making Bugzilla work on windows is still a very painful process. The Bugzilla Team is working to make it easier, but that goal is not considered a top priority. If you wish to run Bugzilla, we still recommend doing so on a Unix bad system such as GNU/Linux. As of this writing, all members of the Bugzilla team and all known large installations run on Unix bad systems.

If after hearing all that, you have enough pain tolerance to attempt installing Bugzilla on Win32, here are some pointers. Becau this is a development version of the guide, the instructions are subject to change without notice. In fact, the Bugzilla Team hopes they do as we would like to have Bugzilla resonabally clo to "out of the box" compatibility by the 2.18 relea.

A.6.1. What is the easiest way to run Bugzilla on Win32 (Win98+/NT/2K)?
Remove Windows. Install Linux. Install Bugzilla. The boss will never know the difference.
本人花了差不多两天时间,终于基本上在windows 2000 professional上安装上了bugzilla
现在贡献出来,希望对大家能有所帮助。

一、安装Perl
1、下载ActivePerl,可以到华军软件园去搜索(linedown/),我下载的是ActivePerl-5.8.0.806-MSWin32-x86.msi,安装到D:\Perl(安装路径可自定,以下同)
2、打开D:\Perl\Lib\CPAN.pm 查找并更改$CPAN: defaultsite ||= "ftp://ftp.perl/pub/CPAN";$CPAN: efaultsite ||= "cpan.shellhung";,主要是为了提高下面安装其他perl模块时的下载安装速度。

二、安装Mysql
1、下载linedown/),我下载的是mysql-4.0.15-win.zip,直接安装即可。同时可以下载安装mysqlcc-0.9.3-win32.zip,这是mysql的管理软件,挺好用的。
2、修改mysqlroot用户密码
E:\>cd mysql
E:\mysql>cd bin
E:\mysql\bin>mysql -u root mysql
mysql>UPDATE ur SET Password=PASSWORD('<new_password'>) WHERE ur='root';
mysql>FLUSH PRIVILEGES;
其中<new_password>root用户的新密码。更改密码后,要用root用户访问mysql,必须使用mysql -u root -p,按提示敲入正确的root密码。
3、创建bugs用户,并赋给相应的权限
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,INDEX, ALTER,CREATE,DROP,REFERENCES,LOCK TABLES,CREATE TEMPORARY TABLES ON bugs.* TO bugs@localhost IDENTIFIED BY '<bugs_password>';
mysql> FLUSH PRIVILEGES;
要记住bugs用户的密码,在下面的bugzilla配置文件要用。
4、创建bugs这里也有乐趣数据库
mysql>create databa bugs;

三、下载Bugzillawww.bugzilla
最好下载bugzilla-2.17.4,如果安装2.16好像要改很多perl脚本,我没有安装成功:(
解压到E:\Bugzilla

四、配置IIS
1、打开控制面板->管理工具->Internet Information Services, Default Web Site右键选择Properties-> Home Dictory-> Configuration,App Mappings中点击Add增加如下资料
Executable: D:\Perl\ "%s" %s
Extension: .pl
Limit to: GET,HEAD,POST

Executable: D:\Perl\ "%s" %s
Extension: .cgi
Limit to: GET,HEAD,POST 沉醉不知归路

注意的路径

2Default Web Site中增加Virtual Directory: BugzillaAccess Permission增加1971年5月11日Execute
3、选择刚建立的虚拟目录Bugzilla,右键选择Properties-> DocumentsDefault Documents中增加i

五、安装Bugzilla
bugzilla目录下有一个checktup.pl脚本。这个脚本写的简直太好了,它既可以检查bugzilla需要的perl模块是否已安装,又可以创建数据库的表及admin用户。不过需要改几个地方才能够在windows下正常使用。在/bugzilla/docs/html/Bugzilla-Guide.html中有如下描述:
4.3.1.3.1. Changes to checktup.pl
In checktup.pl, the line reading:
my $mysql_binaries = `which mysql`;
to
my $mysql_binaries = "D:\\mysql\\bin\\mysql";

And you'll also need to change:
my $webrvergid = getgrnam($my_webrvergroup)
to
my $webrvergid = '8'

安装过程中还得改几个地方才能用。这在下面一步步介绍。

现在先运行cmddos下,进入bugzilla目录,运行perl checktup.pl看看有什么提示信息。

1、安装perl模块
cpan.shellhung,点击perl module->all module,下载AppConfig-1.55CGI.pm-3.00DBD-mysql-2.9002DBI-1.38Template-Toolkit-2.10TimeDate-1.16perl模块
有两种安装方法,一种直接解压下载模块,进入其目录,运行
perl MakeFile.pl
nmake
nmake test
nmake install
(安装了VC长相思诗意就会有nmake
另一种是运行ppm <module name>DBD-mysql-2.9002DBI-1.38最好用这种方式。
安装完成后可以运行perl checktup.pl检查是否bugzilla需要的perl模块都安装完毕。

2、修改checktup.pl
37513756行注释掉:
#$SIG{HUP} = \&bailout;
#$SIG{INT} = \&bailout;
#$SIG{QUIT} = \&bailout;
#$SIG{TERM} = \&bailout;


#system("stty","-echo"); # disable input echoing

37593769这两行也要注释掉,否则它老是提示你输入admin日常监督密码。

3、运行perl checktup.pl,如果没有什么错误提示,会生成localconfig文件

4、修改localconfig文件
$index_html = 1 (生成index.html)
$mysqlpath = "e\\mysql\\bin" (你的mysql\bin路径)
$webrvergroup = "8"
$db_ur = "bugs" (mysql的登陆用户名)
$db_pass = '<bugs_password>'(mysql bugs用户的登陆密码)

5、再次运行perl checktup.pl, 春节散文系统提示创建清明图Administrator的相关邮件,Realname,密码
的资料。
最后,如果成功,最后会提示Reminder: Bugzilla now requires version 8.7 or later of ndmail

6、修改所有的cgi文件,去掉第一行的最后一个字符T

打开浏览器,键入localhost/bugzilla即可进入bugzilla登陆界面

7、修改bugzilla为中文界面
sourceforge/projects/bugzilla-cn/下载bugailla-2.17.4-cn-0.,把解压后的cn目录copyE:\bugzilla\template,然后修改E:\bugzilla\Bugzilla\template.pm文件,在76行增加my $languages = "cn"。在打开浏览器试试,是不是变成中文呢?呵呵。
BTW,本人从来不懂perlcgi

本文发布于:2023-06-14 01:45:53,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/1037375.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:安装   用户   模块   提示   打开
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图