Simplest Enterprise Continuous Integration Solutions

Saturday, October 9, 2010

BugZilla: BugZilla 3.0.6 on Fedora12


[root@fedora12 ~]# uname -a
Linux fedora12.local.lab 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 i686 i386 GNU/Linux

# install Apache

[root@fedora12 ~]# yum install httpd
[root@fedora12 ~]# service httpd restart

# configure httpd

insert /etc/httpd/conf/httpd.conf with

Alias /bugzilla/ "/var/www/html/bugzilla/"

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

# Change
DocumentRoot “/var/www/html” -> DocumentRoot “/var/www/htrml/bugzilla” for fixing firefox browser issue

# install PostgreSQL

# make sure /usr/bin/pg_config existence for DBI:Pg installation
[root@fedora12 ~]# yum install postgresql-devel               
[root@fedora12 ~]# yum install postgresql-server
# check version postgresql-8.4.5-1.fc12.i686
[root@fedora12 ~]# rpm –q postgresql                                

[root@fedora12 ~]# service postgresql initdb

[root@fedora12 ~]# su – postgres

Edit /var/lib/pgsql/data/pg_hba.conf
# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
host all bugs 127.0.0.1 255.255.255.255 md5
# "local" is for Unix domain socket connections only
local   all         all                               md5
# IPv4 local connections:
host    all         all         127.0.0.1/32          md5
# IPv6 local connections:
host    all         all         ::1/128               md5

[root@fedora12 ~]# service postgresql restart

# add Postgres user

[root@fedora12 ~]# createuser -U postgres -dAP bugs
[root@fedora12 ~]# service postgresql restart
[root@fedora12 ~]# psql -h 127.0.0.1 -U bugs –W

# install bugzilla-3.0.6

[root@fedora12 ~]# cd /usr/local
[root@fedora12 ~]# tar –xvf /tmp/bugzilla-3.0.6.tzr.bzip to /usr/local
[root@fedora12 ~]# chgrp –R apache /usr/local/bugzilla-3.0.6
[root@fedora12 ~]# ln -s /usr/local/bugzilla-3.0.6 /var/www/html/bugzilla

# run checksetup.pl

[root@fedora12 ~]# /var/www/html/bugzilla/checksetup.pl --check-modules





yum install perl-CPAN
/usr/bin/perl -MCPAN -e 'install "Email::Send"'
/usr/bin/perl -MCPAN -e 'install "Email::MIME"'
/usr/bin/perl -MCPAN -e 'install "Template"'
/usr/bin/perl -MCPAN -e 'install "Email::MIME::Modifier"'
/usr/bin/perl -MCPAN -e 'install "DBI"'
/usr/bin/perl -MCPAN -e 'install "Date::Format"'

[root@fedora12 ~]# /usr/bin/perl -MCPAN -e 'install "DBD::Pg"'

Edit /var/www/html/bugzilla/localconfig
$db_pass = 'bugzilla';

[root@fedora12 ~]# /var/www/html/bugzilla/checksetup.pl
 







# Troubleshooting:

[root@fedora12 ~]# cd /var/www/html/bugzilla
./testserver.pl http://fedora12.local.lab/bugzilla
TEST-OK Webserver is running under group id in $webservergroup.
TEST-OK Got front picture.
Use of uninitialized value $response in pattern match (m//) at ./testserver.pl line 110.
Use of uninitialized value $response in pattern match (m//) at ./testserver.pl line 110.
TEST-FAILED Webserver is not executing CGI files.
TEST-OK Webserver is preventing fetch of http://fedora12.local.lab/bugzilla/localconfig.
TEST-OK GD version 2.45, libgd version 2.0.34; Major versions match.
TEST-OK GD library generated a good PNG image.
TEST-OK Chart library generated a good PNG image.
TEST-OK Template::Plugin::GD is installed.
[root@fedora12 ~]# chcon -R -t httpd_sys_content_t /var/www/html/bugzilla/

# configure SELinux

[root@fedora12 ~]# system-config-selinux
Status: enforcing -> permissive
Or
Boolean: httpd_can_network_connect_db uncheck -> checked

Enable send email

Boolean: httpd_can_sendmail uncheck -> checked

# BugZilla 3.0.6


No comments:

Post a Comment