How to Install Bugzilla on CentOS

Sunday, February 2, 2014

How to Install Bugzilla on CentOS

there are following steps to configure Bugzilla on CentOS step by steps.

1. Install required packages :-
    >yum install perl* httpd* mysql-server* mod_perl-devel -y

2. Download the latest bugzilla 4.4.2 :-
  > cd /var/www/html
  > wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.4.tar.gz
  > tar zxvf bugzilla-4.4.2.tar.gz
  > mv bugzilla-4.4.2 bugzilla

3. Start mysql server :-
  > service mysqld start

4. Set mysql root password via mysql_secure_installation :-
  > sudo /usr/bin/mysql_secure_installation

5. Create a DB for bugzilla mysql login with root :-
  > mysql -u root -p
  mysql> CREATE DATABASE bugs ;
  mysql> exit

6. Run checksetup script to find needed modules :-
  > ./checksetup.pl

7. Install required modules :-
  > /usr/bin/perl install-module.pl ––all

8. Run checksetup script again to generate localconfig file :-
   > ./checksetup.pl

9. Modify localconfig  for  $db_name, $db_user and $db_pass based on previous settings :-
  > vi ./localconfig

10. Run checksetup script to set initial configuration :-
   > ./checksetup.pl

11. Apache setup, modify httpd.conf, append the following config :-
   > vi /etc/httpd/conf/httpd.conf
   add bellow lines in httpd.conf

 
    AddHandler cgi-script .cgi
   Options +Indexes +ExecCGI
   DirectoryIndex index.cgi
   AllowOverride Limit FileInfo Indexes
 

 OR

 
        DocumentRoot /var/www/html/bugzilla
        ServerAlias bugzilla.yourdomain.com
        AddHandler cgi-script .cgi
        Options +Indexes +ExecCGI
        DirectoryIndex index.cgi
        #AllowOverride Options Limit
        #AllowOverride Limit FileInfo Indexes



12. Restart Apache :-
   > service httpd restart

13. Chkconfig httpd and mysql :-
   > chkconfig httpd on

   > chkconfig mysqld on

14. Set iptables for httpd :-
   > iptables -I INPUT -p tcp ––dport 80 -j ACCEPT

15: check in browser :-
    Open http://localhost/bugzilla





0 comments:

About This Blog

Lorem Ipsum

  © Copyright 2009 Linux-HelpLine.Blogspot.com

Back to TOP