win7+bugzilla+apache+mysql+activePerl
目 录
一下载软件... 2
1.Bugzilla
2.MySQL. 2
3.ActivePerl
4.Apache 2.x. 2
5.邮件fake.2
二安装、配置软件...2
1.Bugzilla
2.MySQL. 2
3.Perl 3
4. Apache. 5
5配置 Bugzilla. 8
6配置支持邮件发送... 10
7汉化Bugzilla. 10
三 Bugzilla迁移... 10
1.Mysql/Bugzilla. 10
2.Perl/Apache. 11
3.备份迁移httpd.conf 11
4.备份迁移sendmail.exe. 11
四注意事项... 11
A.参考文献... 11
B.未完成的事情... 11
1.Linux下安装Bugzilla,... 11
2.升级到2.20, 11
一 下载软件
所有资源可以去我的博客资源里下载:http://download.csdn.net/user/tongkp
1.bugzilla-4.1.3或更高版本
官网地址: http://bugzilla.org/download.html
2.MySQL
官网地址:下载MySQL "Windows Essentials"版本:http://dev.mysql.com/downloads/mysql/4.1.html
3.ActivePerl
官网地址:http://activestate.com/Products/Download/Download.plex?id=ActivePerl
4.Apache 2.x
官网地址:下载Apache HTTP Server version 2.x或更高版本:http://httpd.apache.org/download.cgi
5.邮件fake
这么做,还是发不了邮件,而下载这个安装文件去安装,然后调整一下配置,才可以发送邮件,不太理解前者为何不能工作。
1.Bugzilla2.1.8
解压压缩包即可,可解压至任意位置,为使用方便,可以解到根目录。为了下面的描述清晰起见,本文档假定解压至C:/bugzilla,注意不要重复创建bugzilla文件
2.MySQL
可以选择典型(Typial)安装MySQL,将安装目录设置为:C:/mysql。
使用mysql 命令行创建,打开命令行窗口进入 C:/mysql/bin>
说明:网上的文档,包括BUGZILLA上推荐的一篇文档中,在输入mysql的用户名和密码时都有错误(通过-p传入密码时多了一个空格),因此导致在传入密码的情况
入一次密码,就是下面有删除线的红色字体那行,只要输对了mysql的传参格式以及用户名和密码,是不需再次输入密码的。
mysql --user=root --password=mysql
C:/mysql/bin>mysql –u root -pmysql
Enter password: ********(该行不会出现,除非你把密码改了)
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 9 to server version: 4.1.3-beta-nt
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
Query OK, 1 row affected (0.11 sec)
mysql> grant all privileges on bugs.* to 'bugs'@'localhost' identified by 'bugs';
Query OK, 0 rows affected (0.03 sec)
Query OK, 0 rows affected (0.00 sec)
C:/mysql/bin>mysql -uroot -pmysql
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 10 to server version: 4.1.3-beta-nt
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
mysql> set password for 'bugs'@'localhost' = OLD_PASSWORD('bugs');
Query OK, 0 rows affected (0.00 sec)
3.Perl
Bugzilla 需要安装一些perl模块,请确保你的计算机能连接到internet,所有需要模块都在http://landfill.bugzilla.org/ppm/
进入DOS命令行,输入ppm,或通过运行安装perl时创建的快捷方式,在开始ActivePerl_5.1 程序Perl Package Manager 从而启动ppm(图形界面)来选择需要升级的包。
Location就写 http://ppm4.activestate.com/MSWin32-x64/5.14/1402/package.xml
在这之前我看过前辈周怀进同志在2007年的文章,说有时候网络速度慢或不具备网络条件时,上面的在线安装方式就不爽了。
推荐的下载地址是http://landfill.bugzilla.org/ppm/bugzilla-bundle.zip不过我试过很多次都找不到网页,也许是很久以前的了吧,不过还是要
perl的安装目录下有lib和site/lib,lib里是perl自带的库,site/lib里是用户自己安装的包,在做下面5配置 Bugzilla时,如果提示某个包的版本比较低,可以比较这
两个地方的文件版本,如果确实都低于最低要求,那去网上找最新的包文件,一般情况下可能是用户
自己安装的包的版本太低,只要删掉site/lib下的相关的文件即可。
Checking available perl DBD modules...
Invalid version format (non-numeric data) at Bugzilla/Install/Requirements.pm line 721.
本人的经验是将C:\bugzilla\Bugzilla\Install\Requirements.pm文件的一个判断给注释了,如下:
#if ($found and $found eq "-1") {
# $found_string = install_string('module_not_found');
#}
至于为什么因为暂时还没有时间研究,如果哪位找到了导致错误的真正原因请在本文添加评论或加我msn交流,谢谢
HKEY_CLASSES_ROOT/.cgi/Shell/ExecCGI/Command 编辑默认值为 C:/Perl/bin/perl.exe –T
4. Apache
默认安装即可,假设安装的路径是C:/Program Files/Apache Group它将安装在 C:/Program Files/Apache Group/Apache2。
• C:/Program Files/Apache Group/Apache2/logs
在记事本中编辑 C:/Program Files/Apache Group/Apache2/conf/httpd.conf
将httpd.conf和以下相应的内容比较,对照红色字体内容修改原有的内容。
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
# First, we configure the "default" to be a very restrictive set of
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# This should be changed to whatever you set DocumentRoot to.
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
# Possible values for the Options directive are "None", "All",
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
Options Indexes FollowSymLinks ExecCGI
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
# Controls who can get stuff from this server.
# Tell Apache to use Perl to execute .cgi
ScriptInterpreterSource Registry-Strict
#You also should add index.cgito theDirectoryIndexlist.
# DirectoryIndex: sets the file that Apache will serve if a directory
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
DirectoryIndex index.html index.html.var index.cgi
The Apache2 service is stopping..
The Apache2 service was stopped successfully.
The Apache2 service is starting.
The Apache2 service was started successfully.
2).通过Apache控制台重起apache服务,一般最小化在系统的右下角系统托盘处.
5配置 Bugzilla
C:/bugzilla>perl checksetup.pl
Checking for AppConfig (v1.52) ok: found v1.63
Checking for CGI (v2.93) ok: found v3.20
Checking for Data::Dumper (any) ok: found v2.121_08
Checking for Date::Format (v2.21) ok: found v2.22
Checking for DBI (v1.36) ok: found v1.52
Checking for DBD::mysql (v2.1010) ok: found v2.9004
Checking for File::Spec (v0.82) ok: found v3.12
Checking for File::Temp (any) ok: found v0.16
Checking for Template (v2.08) ok: found v2.13
Checking for Text::Wrap (v2001.0131) ok: found v2005.082401
The following Perl modules are optional:
Checking for GD (v1.20) ok: found v2.16
Checking for Chart::Base (v1.0) ok: found v2.3
Checking for XML::Parser (any) ok: found v2.34
Checking for GD::Graph (any) ok: found v1.43
Checking for GD::Text::Align (any) ok: found v1.18
Checking for PatchReader (v0.9.4) ok: found v0.9.5
All the required modules are available at:
http://landfill.bugzilla.org/ppm/
You can add the repository with the following command:
ppm rep add bugzilla http://landfill.bugzilla.org/ppm/
This version of Bugzilla contains some variables that you may want
to change and adapt to your local settings. Please edit the file
'./localconfig' and rerun checksetup.pl
The following variables are new to localconfig since you last ran
checksetup.pl: index_html cvsbin interdiffbin diffpath create_htaccess
webservergroup db_driver db_host db_pass db_sock db_check
# How to access the SQL database:
$db_host = "localhost"; # where is the database?
$db_port = 3306; # which port to use
$db_name = "bugs"; # name of the MySQL database
$db_user = "bugs"; # user to attach to the MySQL database
# Enter your database password here. It's normally advisable to specify
# a password for your bugzilla database user.
# If you use apostrophe (') or a backslash (/) in your password, you'll
# need to escape it by preceding it with a / character. (/') or (//)
C:/bugzilla>perl checksetup.pl
这时将创建数据库相关表和初始化Bugzilla.下面蓝色字是创建过程中你要输入的。
Looks like we don't have an administrator set up yet. Either this is your
first time using Bugzilla, or your administrator's privileges might have
Enter the e-mail address of the administrator: admin@test.com
You entered 'byron@example.com'. Is this correct? [Y/n] y
Enter the real name of the administrator: admin
Enter a password for the administrator account: 123456
Please retype the password to verify: 123456
'admin@test.com' is now set up as an administrator account.
现在就可以通过http://localhost/登陆Bugzilla,至此你就能使用等待以久的Bugzilla缺陷跟踪系统了。下面是两个附加工作。
6配置支持邮件发送
下载了上述5.邮件fake,参考里面的文档来配置即可,主要注意的事项是usr目录的位置,如果你的bugzilla装在c盘,则将usr目录放到c:/下,如果装在d盘,则将usr目录放到d:/下。
另外配置成功后,能收到邮件后,邮件里面的一些信息需要修改,比如urlbase,urlbase默认是http://you-havent-visited-editparams.cgi-yet/。
1).你可以以管理员身份登陆,访问http://****/editparams.cgi,然后修改urlbase,“****”表示是bugzilla所在的机器名或域名或IP地址。
查找 'urlbase' => 'http://you-havent-visited-editparams.cgi-yet/',将后面的字符串改为你所需要的。
7汉化Bugzilla
在http://www.bugzilla.org/download/里能找到相应版本的bugzilla汉化包,按包内的文档去做就可以了。
1.Mysql/Bugzilla
把这两个软件目录直接拷贝到目标服务器,从简化工作的角度来说,你可以不要改变这两个软件的位置,原先在C盘,你还放在C盘,在D盘,你就放在D盘。
对于Mysql,你执行一下C:/mysql/bin/winmysqladmin.exe,mysql 以后就作为服务而随系统启动自动加载了。
2.Perl/Apache
完全按照上面的安装配置文档,全新安装这两个软件,主要是那些module还需重新安装,当然第二次安装时,会熟练许多J。
3. 备份迁移httpd.conf
4. 备份迁移sendmail.exe
直接拷贝对应的目录即可。将/usr目录拷贝到bugzilla安装目录所在驱动器上.
随后启动相关服务,如apache,mysql,则迁移工作完成。
perl checksetup会报错。你只需将该环境变量屏蔽即可。
A.参考文献
http://www.bugzilla.org/docs/win32install.html
http://bbs.51testing.com/viewthread.php?tid=22398大概需要注册帐号才能下载,我参考的文档是一个朋友递过来的,但我还是根据文档中作者的信息到网上找到了这
个来源,以尊重作者的辛勤付出。(《Windows下安装Bugzilla》作者shorelew@hotmail.com)
B.未完成的事情
1.Linux下安装Bugzilla,
2.升级到2.20,
文档显示,在2.20下不需要额外的sendmail.exe来支持发送邮件,2.20下及更高版本中已有模块,直接配置相关文件即可,可以到bugzilla官方网站去查找相关资料。
blog: http://spaces.msn.com/members/zhj-michael/
win7+bugzilla+apache+mysql+activePerl相关推荐
- win7+bugzilla+apache+mysql+activePerl环境安装bugzilla
一 下载软件 1.1 bugzilla-4.1.3或更高版本 官网地址: http://bugzilla.org/download.html 1.2 MySQL 官网地址:下载MySQL &quo ...
- win7 php mysql apache 64_教你在64位win7体系中设备apache+mysql+php情况.doc
教你在64位win7体系中设备apache+mysql+php情况.doc 还剩 4页未读, 继续阅读 下载文档到电脑,马上远离加班熬夜! 亲,喜欢就下载吧,价低环保! 内容要点: 在 DOS 命令提 ...
- GreenAMP下载:可将Apache MySQL PHP安装成绿色软件
前天我在chin.blogchina.com发表了"Windows下把Apache,MySQL,PHP安装为绿色软件" 一文,承蒙各位网友错爱(好多感兴趣的网友纷纷留言希望提供下载 ...
- wamp的mysql单独使用_Windows 7+8.1+10 单独安装配置 PHP+Apache+MySQL(不使用 WAMP)
Windows 8.1 单独安装配置 PHP+Apache+MySQL(不使用 WAMP) 本文同样适用于Windows7和10 0x00 PHP [下载]http://www.doczj.com/d ...
- redmine mysql配置_Redmine安装指南一:railsinstaller+apache+mysql(推荐)
安装方法一:railsinstaller+apache+mysql 搜索redmine安装的时候,排名最前配置ruby环境的软件就是InstantRails.可实际上InstantRails从2007 ...
- mac下php+mysql_Mac下Apache+MySQL+PHP安装
max下是自带有Apache和php的服务器的,不需要另外 安装 ,本文就对相关配置进行介绍. 第一:Apache 在终端中输入,下面指令即可启动Apache服务器: //启动 sudo apache ...
- RedHat Enterprise Linux 5下配置Apache+Mysql+Php
Phinecos(洞庭散人) 专注于开源技术的研究与应用 RedHat Enterprise Linux 5下配置Apache+Mysql+Php 第一步:系统与软件的准备 系统版本 redhat e ...
- win7 cmd 操作mysql数据库
win7 cmd 操作mysql数据库 一 ,对MySql服务器的开启,重启,关闭等操作 当然,可以在win7的界面环境下,关闭或开启MySql服务.但是经常找不到win7的服务管理器,主要定位方法有 ...
- Apache+MySQL+PHP安装指南
L.A.M.P.(Linux, Apache, MySQL, PPH) 是开源软件的黄金组合,几乎每一个Linux的开发或管理人员都会有机会接触到LAMP,"怎么安装?"是问得最多 ...
最新文章
- 1.4 os的运行机制和体系结构
- github常见操作和常见错误!错误提示:fatal: remote origin already exists.
- 自研海外PCDN系统技术架构与演进
- 分拣外观残缺的机器人_一款分拣搬运机器人的设计
- java+getactionmap_Struts2 使用OGNL遍历map方法详解
- 80-30-010-原理-React模式-简介
- Hibernate Session中的save(),update(),delete(),saveOrUpdate() 细粒度分析
- android 重用布局区分控件,【专题分析】布局优化
- 转Spring+Hibernate+EHcache配置(二)
- [C# 开发技巧]实现属于自己的截图工具
- AMPL-段阶段生产模型
- 新建文件没有word、ppt、excel,office图标显示为白色,不能正常显示
- JAVA语言基础知识总结
- 如何开启Windows远程桌面服务
- AWK中的OFS的问题
- 如何设置浏览器信任局域网的网站证书
- 同一局域网下,一台电脑连接另一台电脑的虚拟机(从属机(window)连接主机(window)虚拟机(Linux)的连接流程)
- Linux命令 - su命令
- 南方科技大学快速建设世界一流超算系统
- python字典取值_python字典,python字典取值