惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
罗磊的独立博客
MyScale Blog
MyScale Blog
博客园 - 叶小钗
U
Unit 42
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
有赞技术团队
有赞技术团队
F
Fortinet All Blogs
WordPress大学
WordPress大学
美团技术团队
GbyAI
GbyAI
L
LangChain Blog
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
Y
Y Combinator Blog
V
Visual Studio Blog
小众软件
小众软件
D
Docker
量子位
博客园_首页
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
C
CERT Recently Published Vulnerability Notes
AI
AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Know Your Adversary
Know Your Adversary
Vercel News
Vercel News
C
Check Point Blog
I
InfoQ
NISL@THU
NISL@THU
Webroot Blog
Webroot Blog
S
Security Affairs
Stack Overflow Blog
Stack Overflow Blog
V
Vulnerabilities – Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
TaoSecurity Blog
TaoSecurity Blog
L
Lohrmann on Cybersecurity
Hacker News: Ask HN
Hacker News: Ask HN
C
CXSECURITY Database RSS Feed - CXSecurity.com
N
News and Events Feed by Topic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
W
WeLiveSecurity
V2EX - 技术
V2EX - 技术
SecWiki News
SecWiki News
PCI Perspectives
PCI Perspectives
S
Secure Thoughts
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - 黄金海岸

sqlite3环境配置-初始篇 linux-vi备查 QT设计之编译 QT设计之Designer H3C交换机配置命令大全 sqlite3小试牛刀 - 黄金海岸 - 博客园 sqlite3环境配置 利用 AXIS开发Webservice(一) —— 如何发布自己的webservice(转) 在Visual C++ 中调用Excel 2000 软件配置管理-团队开发的基石 VC常用数据类型使用转换详解(转载) vb和vc混合编程实例(ocx和dll) (转载) VC++中使用ADO方式操作ACCESS数据库(转载) 同行评审过程描述(四)——测量 同行评审过程描述(三)——走查步骤 同行评审过程描述(二)——评审步骤 同行评审过程描述(一)——概述(转载) 单元测试 单元测试的基本方法
Bugzilla windows安装红宝书(转载)
黄金海岸 · 2006-11-21 · via 博客园 - 黄金海岸

Bugzilla windows安装红宝书
在Windows环境下安装Bugzilla真是好难啊,AppConfig和Template这2个模块苦苦寻找也没有找到Win32版本的,距离成功就是差了这一步。
终于发现了一篇Win32环境下的安装手记,阅读之... 
文章中提到的“ppm 模块名”的安装命令是错误的,应该是“ppm install 模块名”。使用nmake的方法,终于搞定了AppConfig和Template这二个模块。相关模块包及安装方法下载。
Bugzilla Windows安装红宝书

一直寻找合适的Bug Tracking System,网上找了很久,commercial的太贵,还有licence限制,远远超出我等贫民的承受范围。也曾考虑干脆自己写一个算了,但终究未能如愿。对Bugzilla倒是早有所闻,只可惜好像在Linux下比较好安装,在windows上却难上加难。在Bugzilla的document和FAQ中可见一斑:
Making Bugzilla work on windows is still a very painful processes. 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 based system such as GNU/Linux. As of this writing, all members of the Bugzilla team and all known large installations run on Unix based systems.
If after hearing all that, you have enough pain tolerance to attempt installing Bugzilla on Win32, here are some pointers. Because this is a development version of the guide, these instructions are subject to change without notice. In fact, the Bugzilla Team hopes they do as we would like to have Bugzilla resonabally close to "out of the box" compatibility by the 2.18 release.
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,可以到华军软件园去搜索(

http://www.onlinedown.net/

),我下载的是ActivePerl-5.8.0.806-MSWin32-x86.msi,安装到D:\Perl(安装路径可自定,以下同)
2、打开D:\Perl\Lib\CPAN.pm 查找并更改$CPAN: defaultsite ||= "

ftp://ftp.perl.org/pub/CPAN

";为$CPAN: efaultsite ||= "

http://cpan.shellhung.org

";,主要是为了提高下面安装其他perl模块时的下载安装速度。
二、安装Mysql
1、下载Mysql(

http://www.onlinedown.net/

),我下载的是mysql-4.0.15-win.zip,直接安装即可。同时可以下载安装mysqlcc-0.9.3-win32.zip,这是mysql的管理软件,挺好用的。
2、修改mysql的root用户密码
E:\>cd mysql
E:\mysql>cd bin
E:\mysql\bin>mysql -u root mysql
mysql>UPDATE user SET Password=PASSWORD('

) WHERE user='root';
mysql>FLUSH PRIVILEGES;
其中为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 '';
mysql> FLUSH PRIVILEGES;
要记住bugs用户的密码,在下面的bugzilla配置文件要用。
4、创建bugs数据库
mysql>create database bugs;
三、下载Bugzilla(www.bugzilla.org)
最好下载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\bin\perl.exe "%s" %s
Extension: .pl
Limit to: GET,HEAD,POST
Executable: D:\Perl\bin\perl.exe "%s" %s
Extension: .cgi
Limit to: GET,HEAD,POST
注意Perl.exe的路径
2、Default Web Site中增加Virtual Directory: Bugzilla。Access Permission增加Execute。
3、选择刚建立的虚拟目录Bugzilla,右键选择Properties-> Documents。Default Documents中增加index.cgi。
五、安装Bugzilla
bugzilla目录下有一个checksetup.pl脚本。这个脚本写的简直太好了,它既可以检查bugzilla需要的perl模块是否已安装,又可以创建数据库的表及admin用户。不过需要改几个地方才能够在windows下正常使用。在/bugzilla/docs/html/Bugzilla-Guide.html中有如下描述:
4.3.1.3.1. Changes to checksetup.pl
In checksetup.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 $webservergid = getgrnam($my_webservergroup)
to
my $webservergid = '8'
安装过程中还得改几个地方才能用。这在下面一步步介绍。
现在先运行cmd到dos下,进入bugzilla目录,运行perl checksetup.pl看看有什么提示信息。
1、安装perl模块
到cpan.shellhung.org,点击perl module->all module,下载AppConfig-1.55、CGI.pm-3.00、DBD-mysql-2.9002、DBI-1.38、Template-Toolkit-2.10、TimeDate-1.16。perl模块有两种安装方法,一种直接解压下载模块,进入其目录,运行
perl MakeFile.pl
nmake
nmake test
nmake install
(安装了VC就会有nmake)
另一种是运行ppm ,DBD-mysql-2.9002、DBI-1.38最好用这种方式。
安装完成后可以运行perl checksetup.pl检查是否bugzilla需要的perl模块都安装完毕。
2、修改checksetup.pl
3751~3756行注释掉:
#$SIG = \&bailout;
#$SIG = \&bailout;
#$SIG = \&bailout;
#$SIG = \&bailout;
#system("stty","-echo"); # disable input echoing
3759和3769这两行也要注释掉,否则它老是提示你输入admin密码。
3、运行perl checksetup.pl,如果没有什么错误提示,会生成localconfig文件
4、修改localconfig文件
$index_html = 1 (生成index.html)
$mysqlpath = "e\mysql\bin" (你的mysql\bin路径)
$webservergroup = "8"
$db_user = "bugs" (mysql的登陆用户名)
$db_pass = ''(mysql bugs用户的登陆密码)
5、再次运行perl checksetup.pl, 系统提示创建Administrator的相关邮件,Realname,密码的资料。
最后,如果成功,最后会提示Reminder: Bugzilla now requires version 8.7 or later of sendmail
6、修改所有的cgi文件,去掉第一行的最后一个字符T
打开浏览器,键入http://localhost/bugzilla即可进入bugzilla登陆界面
7、修改bugzilla为中文界面
http://sourceforge.net/projects/bugzilla-cn/下载bugailla-2.17.4-cn-0.92.tar.gz,把解压后的cn目录copy到E:\bugzilla\template,然后修改E:\bugzilla\Bugzilla\template.pm文件,在76行增加my $languages = "cn"。在打开浏览器试试,是不是变成中文呢?呵呵。
BTW,本人从来不懂perl和cgi。