1。 检查网络配置
参考《鸟哥的Linux私房菜》25章
ifconfig -a
重启网络设定
/etc/rc.d/init.d/network restart
2。 安装MySql
Installed Version Test:
mysql -V |
3. 1 若已经安装apache server
配置文件 /etc/httpd/conf/httpd.conf
启动apache server: service httpd restart
3.2 安装Apache server
参考:http://lamp.linux.gov.cn/Apache/ApacheMenu/install.html
| 下载 | $ lynx http://httpd.apache.org/download.cgi |
| 解压 | $ gzip -d httpd-NN.tar.gz |
| 配置 | $ ./configure --prefix=PREFIX |
| 编译 | $ make |
| 安装 | $ make install |
| 配置 | $ vi PREFIX/conf/httpd.conf |
| 测试 | $ PREFIX/bin/apachectl -k start |
如果没有指定PREFIX,默认会装到/usr/local/apache2
安装mod_perl:
4. 安装Bugzilla
将bugzilla tar 解压到/var/www/html/ 下, (此目录为apache server的文档目录)
进入Bugzilla目录,用root执行
./checksetup.pl --check-modules
如果有perl module缺失,运行
/usr/bin/perl install -module.pl --all
如果需要代理服务器才能下载更新perl modules, 请先设置CPAN的proxy
4.2 如果遇到这样的提示
Can't locate Module/Datetime.pm in @INC
意味着Perl模块没有安装全, 可以用CPAN来安装缺失的模块
# perl -MCPAN -e- 'install Module::Build'
如果系统上很多模块都已经很旧了,用这个命令来自动更新
# /usr/local/bin/perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
5. 再次执行
# ./checksetup.pl
它产生一个配置文件 ./localconfig
6. 修改 ./localconfig
$db_driver = 'mysql'
$db_pass = ‘Bugs4all'
7. 在mysql上创建用户密码
# mysql -u root -p mysql> GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY 'Bugs4all'; mysql> FLUSH PRIVILEGES;
8. 再次运行
# ./checksetup.pl这次会创建Bugzilla的database9. 执行的最后会让你创建管理员账号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 accidentally been deleted. Enter the e-mail address of the administrator: j131wang@xxx.com Enter the real name of the administrator: Jason Wang Enter a password for the administrator account: nsn123 Please retype the password to verify: welcome ramesh@4medica.com is now set up as an administrator. Creating default classification 'Unclassified'... Creating initial dummy product 'TestProduct'... Now that you have installed Bugzilla, you should visit the 'Parameters' page (linked in the footer of the Administrator account) to ensure it is set up as you wish - this includes setting the 'urlbase' option to the correct URL.10. 配置mod_perlRename the bugzilla directory. (i.e remove the version number in it)
# cd /var/www/html # mv bugzilla-3.4.6/ bugzillaAdd the following two lines to httpd.conf
# tail -2 /etc/httpd/conf/httpd.conf PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T PerlConfigRequire /var/www/html/bugzilla/mod_perl.plVerify the Group in httpd.conf matches the webservergroup in localconfig
# cd /var/www/html/bugzilla/ # grep webservergroup localconfig $webservergroup = 'apache'; # grep Group /etc/httpd/conf/httpd.conf Group apache11. 最后一次执行checksetup.pl12。 重启apache server# service httpd restart
13. 访问 http://{your-ip-address}/bugzilla
14. Reference:
http://www.thegeekstuff.com/2010/05/install-bugzilla-on-linux/
http://www.51testing.com/html/25/n-91725.html
本文提供了一个详细的步骤来安装Bugzilla缺陷跟踪系统。包括配置Linux网络、安装MySQL数据库、Apache服务器及mod_perl,并最终完成Bugzilla的安装配置过程。
1万+

被折叠的 条评论
为什么被折叠?



