xiaohei 软件测试专栏

导航

 

在Linux上部署Bugzilla和TestLink是一件很轻松的事情反正要比在Windows上感觉好很多。

部署环境:
Linux AS4 我选择全部安装其中里面包含了部署Bugzilla 和TestLink所必需要用到的,版本如下
PHP 4.3.9
mysql-4.1.20-1.RHEL4.1
httpd-2.0.52-25.ent
Perl v5.8.5
sendmail-8.13.1-3.RHEL4.5
系统安装完成后以上所有工具均为可用只需启动服务即可。
启动Apache: service httpd start
启动Mysql: /etc/init.d/mysqld start
启动Sendmail: service sendmail start
查看当前版本可以使用 rpm –qa ***命令。例如:rpm –qa httpd 查看Apache当前版本。
Bugzilla我下载的版本为bugzilla-3.0.3.tar.gz
解压放在 /var/www/html/ 并重命名为bugzilla
执行./checksetup.pl 查找所需perl 模块。可以通过访问http://search.cpan.org 查找所需模块进行手工安装。
模块安装完毕后再次执行./checksetup.pl 生成localconfig文件。

然后执行下一步操作为Bugzilla创建mysql数据库帐户命令如下:
mysql>  GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES,
          CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost
          IDENTIFIED BY '1111';
mysql>  FLUSH PRIVILEGES;
编辑刚才生成的localconfig文件,修改$db_pass = '1111'; 保存退出。
运行./checksetup.pl文件配置Bugzilla管理员帐号等信息

配置Apache
打开httpd.conf 文件 只有三个地方需要做修改
vi /etc/httpd/conf/httpd.conf 请检查文件路径是否正确
1、去掉注释 AddHandler cgi-script .cgi
2、找到 <Directory "/var/www/html"> 这段话 中间加入两句
Options ExecCGI FollowSymLinks
AllowOverride Limit      
 3、找到DirectoryIndex 在句尾加入index.cgi
DirectoryIndex index.html index.html.var index.cgi
最后执行重启Apache命令: service httpd restart

现在Bugzilla已经初步搭建完毕。可以通过http://you server ip/bugzilla进行访问


TestLink 部署
TestLink我下载的版本为testlink_1_6_0.zip,因为最新版本testlink_1.7.4安装需要PHP5.0以上版本。
为了避免不必要的麻烦可以先暂时使用较低版本。
解压放在 /var/www/html/ 并重命名为testlink 跟bugzilla 放在同一目录下
执行命令:chmod o+w /var/www/html/testlink/gui/templates_c/
访问http://you server ip/testlink/install/index.php进行自动初始化配置
点击New installation
Checking PHP version: OK! (4.3.9 >= 4.1.0)
Checking if Register Globals = OFF: OK!
Checking if sessions are properly configured: OK!
Checking if ../gui/templates_c directory exists: OK!
Checking if ../gui/templates_c directory is writable: OK!
如果mysql没有设置密码可以通过命令:
mysql> UPDATE user SET Password=PASSWORD('1111') WHERE user='root';
mysql> FLUSH PRIVILEGES;

Database login: root
Database password: 1111
TestLink DB login: root
TestLink DB password: 1111

请注意这句话
“After installation You will have the following login for TestLink Administrator.
login name: admin
password : admin”

最后点击 Setup TestLink! 按钮完成部署
通过http://you server ip/testlink进行访问
用户名密码均为 admin

posted on 2008-04-24 14:31  blacklist  阅读(1593)  评论(0编辑  收藏  举报