选择软件测试纯属一个意外,这个意外对我来说不悲不喜,既然已经开始了,那就持续的做下去吧。

Linux下bugzilla4.1.3安装和配置全过程记录

上一篇 / 下一篇  2011-12-14 17:54:00 / 个人分类:每日记录

想到自己安装的时候真是!!叫天天不灵,叫地地不应啊,泪水哗啦啦啦的流。
故此,写一个安装步骤给所有菜鸟中的菜鸟!
先简单说明一下bugzilla安装。之前傻傻的认为,就跟在windows下安装一个普通exe文件那么简单,其实真不是。
这点请所有刚步入测试的童鞋们一定知道啊。在Linux下安装bugzilla就相当于你安装了360软件大师之前,必须先装上360安全卫士一样哈。
现在开始正式的安装环节。
首先,准备需要的各种软件包。
安装bugzilla之前需要安装Apache+Mysql+Perl+Sendmail,最后才是bugzilla4.1.3
下载地址:
然后,鸡冻的时刻到了,开始逐个安装。
第一、安装Apache
解压缩:tar -zxvf httpd-2.2.21.tar.gz
安装:cd httpd-2.2.21
执行./configure --prefix=/usr/local/apache2 --enable-module=so
输入make   
然后输入makeinstall等着完成安装
开始配置apache
输入:vi /usr/local/apache/conf/httpd.conf
输入:a进入编辑模式
输入:
Add Handler cgi-scrīpt .cgi
<Directory "/var/www/bugzilla/">"/var/www/bugzilla/"是你的bugzilla目录   Options FollowSymLinks AllowOverride None Order deny,allow Allow from all </Directory> 
Options Indexes FollowSymLinks ExecCGI

修改 “DirectoryIndex index.html”在"index.html"前加入“index.cgi”找到,DocumentRoot "/var/www/html",将引号中的内容替换为bugzilla的安装路径,本例为/local/user/bugzilla/,替换完应该为:DocumentRoot“/local/user/bugzilla/”
找到ServerName
在行#ServerName new.host.name:80下面添加如下内容:
ServerName 192.168.1.1:80 *192.168.1.1是你的服务器IP
启用Apache
/usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/apachectl stop 这个是停用
测试APACHE2是否服务启动成功
IE中输入http://iplocalhost
如果显示it works就表示服务已成功。
此时,Apache就已经装好了。
第二、安装Mysql
tar -zxvf mysql5.1.55.tar.gz    #解压安装包
cd mysql5.1.55  #进入文件夹
./configure --prefix=/home/bugs #指定安装目录安装
make #编译
make install  #编译安装
/home/bugs/bin/mysql_install_db --user=root    #初始化mysql
/home/bugs/bin/mysqld_safe --user=root &
home/xmail/mysql/bin/mysqld_safe --user=xmail &   #重启mysql
/home/xmail/mysql/bin/mysqladmin  shutdown    #停止mysql,直接杀掉进程
install plugin innodb soname ‘ha_innodb.so’ #进到mysql路径下安装innodb
vi /etc/my.cnf   #进入后修改innodb配置
# Uncomment the following if you are using InnoDBtables
# of RAM but beware of setting memory usage too highinnodb_buffer_pool_size = 16Minnodb_additional_mem_pool_size = 2M# Set .._log_file_size to 25 % of buffer pool sizeinnodb_log_file_size = 5Minnodb_log_buffer_size = 8M
innodb_data_home_dir = /home/xmail/mysql/varinnodb_data_file_path = ibdata1:10M:autoextendinnodb_log_group_home_dir = /home/xmail/mysql/var# You can set .._buffer_pool_size up to 50 - 80 %
innodb_flush_log_at_trx_commit = 1innodb_lock_wait_timeout = 50
三、安装Perl
tar –zxvf ActivePerl*****.tar.gz  #解压Perl
cd  ActivePerl******  #进入文件夹
./install.sh #执行安装
四、安装bugzilla
tar -zxvf bugzilla-4.1.13.tar.gz
cd bugzilla-4.1.3
./checksetup.pl    #检查所有需要的模块
问题一般都在这个之后
如果出现DBD没有的话,那就执行如下:
cd /usr/local/src/mysql-4.0.9   安裝DBD模塊
       ./configure --without-server --prefix=/usr/local/mysql-4.0.9
      make
      make install
      cd /usr/local/src/DBD-mysql-2.1023
      perl Makefile.PL \
--libs="-L/usr/local/mysql-4.0.9/lib/mysql -lmysqlclient -lz" \
--cflags=-I/usr/local/mysql-4.0.9/include/mysql \
--testhost=127.0.0.1
      make
      make test # Some minor error messages can be ignored here
      make install
一切都弄好以后,可以往下执行
vi localconfig   #修改bugzilla的配置文件
$db_host = “localhost”;
$db_name = “bugs”;
$db_user = “bugs”;
$db_pass = “xxxx”;——-你建立数据库时用到的密码
./checksetup.pl    #创建数据库等信息
admin@abc.com  让你输入管理员账号
adminbugs  密码
adminbugs  重复输入密码
./localconfig 中的$webservergroup 为 xmail
chown -R xmail:xmail bugzilla-4.1.3
五、sendmail模块配置
cd /etc/mail#进入目录
rpm -qa |grep sendmail   #查找sendmail组件
rpm ivh sendmail-cf-8.13.1-3.3.el4.i386.rpm   #安装sendmail组件
vi access   #修改配置文件
192.168.17   RELAY  #配置文件内容为所属的网段
makemap hash /etc/mail/access.db< /etc/mail/access
useradd smmsp
m4 /etc/mail/submit.mc > /etc/mail/submit.cf
/etc/rc.d/init.d/sendmail restart




TAG:

 

评分:0

我来说两句

日历

« 2024-04-27  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 6753
  • 日志数: 5
  • 建立时间: 2011-02-11
  • 更新时间: 2011-12-15

RSS订阅

Open Toolbar