免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2100 | 回复: 1
打印 上一主题 下一主题

bugzilla-building [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-09 21:15 |只看该作者 |倒序浏览
bugzilla-building

        1. Bugzilla version:
                bugzilla 4.0.2 && bugzilla 4.1.3

        2. Testing platform:
                Fedora release 16(x86_64)

        3. Database:
                mysql
       
        4. Webserver:
                apache2

        5. Group member:
                Candan Li <candan.li@maxwit.com>
                Matthew He <matthew.he@maxwit.com>
       
Building steps:

        Download a Bugzilla tarball:
                http://ftp.mozilla.org/pub/mozil ... gzilla-4.0.2.tar.gz

        Extract files:
                sudo su
                cd /usr/local/
                tar xvf /maxwit/source/bugzilla-4.0.2.tar.gz
                cd bugzilla-4.0.2

        Check required modules:
                ./checksetup.pl --check-modules
       
        Install missing perl modules:
                perl install-module.pl --all

                or

                yum install perl-Template-Toolkit.x86_64 \
                                        perl-Email-MIME.noarch \
                                        perl-Email-Send.noarch \
                                        perl-GD.x86_64 perl-Chart.noarch \
                                        perl-Template-GD.noarch \
                                        perl-GDTextUtil.noarch \
                                        perl-GDGraph.noarch \
                                        perl-XML-Twig.noarch \
                                        perl-LDAP.noarch \
                                        perl-Authen-SASL.noarch \
                                        perl-SOAP-Lite.noarch \
                                        perl-JSON-RPC.noarch \
                                        perl-JSON-XS.x86_64 \
                                        perl-Test-Taint.x86_64 \
                                        perl-HTML-Scrubber.noarch \
                                        perl-Email-Reply.noarch \
                                        perl-TheSchwartz.noarch \
                                        perl-Daemon-Generic.noarch \
                                        perl-Math-Random-Secure.noarch

        Install mysql-server mysql-client httpd:
                yum install mysql-server mysql-client httpd
               
        Configure mysql:
                a. login mysql as root.
                b. create user 'bugs':
                        mysql>GRANT SELECT, INSERT,
                                        UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES,
                                        CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.*
                                        TO bugs@localhost IDENTIFIED BY 'your-password';
                        mysql> FLUSH PRIVILEGES;
                        mysql>create database bugs;

                c. modify /etc/my.conf add:
                        [mysqld]
                        max_allowed_packet=4M
                        ft_min_word_len=2

                d. restart mysql server:
                        systemctl restart mysqd.service

        Configure httpd:
                a. modify /etc/httpd/conf/httpd.conf add:

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

                b. restart httpd
                        systemctl restart httpd.service

        Run ./checksetup.pl without --check-modules:
                ./checksetup

        Configure localconfig:
                $db_driver='mysql'
                $db_name='bugs'
                $db_name='bugs'
                $db_pass='your-password'
       
        Change DIR mode:
                Chmod -R 755 /usr/local/bugzilla-4.0.2

        Configure selinux:
                yum install policycoreutils-gui
                system-config-selinux        chang "enforcing" to "Permissive" or modify /etc/selinux/config
                setsebool -P httpd_unified 1

        Change security context type:
                sudo chcon -Rv --type=httpd_sys_content_t /usr/local/bugzilla-4.0.2/

        Chang DIR permission:
                sudo chmod g+w /usr/local/bugzilla-4.0.2 -R

        Configure firewall(disable??):
                setup

论坛徽章:
0
2 [报告]
发表于 2011-12-10 14:38 |只看该作者
Bugzilla Web Configure
        ln -s /usr/local/bugzilla-4.0.2 /var/www/html/bugzilla

        open the web: localhost/bugzilla
        log in for your administration user
        open Administration->Parameters

        1. Set the maintainer
                a. open 'index->maintainer' link
                b. set the 'maintainer' optios as your Email Address
                c. Sava Changes

        2. Set the server url
                a. open the 'Required Settings' link
                b. set the 'urlbase' as http://localhost/bugzilla/
                c. Save Changes

        3. Set the Email(temporariness not support for the Microsoft Email(server))
                a. open 'Email' link`
                b. set the 'mailfrom' optios as your Email Address
                c. set the 'smtpserver' (for example: stmp.sina.com)
                d. set 'smtp_username' and 'smtp_password' as your Email Address and password
                e. Save Changes
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP