zhyiwww
用平实的笔,记录编程路上的点点滴滴………
posts - 536,comments - 394,trackbacks - 0

主要步骤:
【1】安装mysql
# aptitude install mysql
【2】安装perl
#aptitude install perl
【3】安装bugzilla
#tar vxfz bugzilla-3.6.tar.gz -C /xx/bugzilla
【4】配置buzilla
# vi localconfig
把里面数据库的配置修改正确
比如mysql的用户名和密码等
# ./checksetup.pl
根据系统的提示,查找缺少的包,然后安装,不过perl的包需要用cpan安装。
#aptitude install cpan
最难装的可能是GD
#cpan GD
如果
#./checksetup.pl
提示所有的包都安装了,那么,bugzilla会提示你输入bugzilla的管理员邮箱和密码。一定要记住。
【5】配置apache
#cp /xx/bugzilla-3.6/*.cgi /usr/lib/cgi-bin/
#cp /etc/apache2/sites-available/default /etc/apache2/sites-available/bugzilla
#ln -s /etc/apache2/sites-available/bugzilla /etc/apache2/sites-enabled/bugzilla
#vim /etc/apache2/sites-available/bugzilla
内容:

<VirtualHost *:8081>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/html/bugzilla
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/html/bugzilla/>
                AddHandler cgi-script .cgi
                Options +Indexes +ExecCGI
                DirectoryIndex index.cgi
                AllowOverride Limit
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory /usr/lib/cgi-bin>
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>


        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined


</VirtualHost>

虚拟机的端口需要提前配置:
#vim /etc/apache/ports.conf
内容:

# bugzilla
NameVirtualHost *:8081
Listen 8081

<IfModule mod_ssl.c>
    # SSL name based virtual hosts are not yet supported, therefore no
    # NameVirtualHost statement here
    Listen 443
</IfModule>

【6】重启apache
#/etc/init.d/apache2 restart
 
【7】测试
http://localhost:8081/
如果出现bugzilla的页面,就说明你配置成功了。

【8】邮件配置
用管理员的帐号登录进去
在“管理”页面,配置“参数”,然后配置“邮件”,就和你配置outlook一样,配置smtp服务器,用户名,密码,确定,重启apache.
就可以了。

【9】邮件配置成功验证
在首页,创建新用户,如果提示发邮件到用户邮箱,并能收到邮件,就说明邮件配置正却。









|----------------------------------------------------------------------------------------|
                           版权声明  版权所有 @zhyiwww
            引用请注明来源 http://www.blogjava.net/zhyiwww   
|----------------------------------------------------------------------------------------|
posted on 2010-06-03 16:19 zhyiwww 阅读(2676) 评论(0)  编辑  收藏 所属分类: 软件测试linux

只有注册用户登录后才能发表评论。


网站导航: