::Installing Bugzilla-4.4 on CENTOS Fedora Redhat::
Update all the Repository
#Server@server~]$ su
Enter ROOT Password
#Server@server]# rpm –Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
#Server@server]# rpm –Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
#Server@server]# yum update
#Server@server]# yum install perl-CPAN
Also run this command for all neede install
#Server@server]# perl-GD perl-Chart perl-Template-GD perl-GDGraph perl-GDTextUtil perl-PatchReader perl-MIME-tools perl-LDAP perl-Authen-SASL perl-RadiusPerl perl-SOAP-Lite perl-JSON-RPC perl-JSON-XS perl-Test-Taint perl-HTML-Scrubber perl-Email-MIME-Attachment-Stripper perl-Email-Reply perl-TheSchwartz perl-Daemon-Generic perl-Math-Random-Secure perl-YAML perl-Class-Inspector httpd mysql-server mod_perl mod_perl-devel httpd-devel graphviz patchutils gcc perl-DateTime perl-Template-Toolkit perl-Email-Send perl-Email-MIME
#Server@server]# restorecon –Rv /var/www/html/
#Server@server]# cd /var/www/html
Now download latest bugzilla-4.4 tar.gz file from the below URL.
#Server@server]# wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.4.tar.gz
And untar the downloaded bugzilla tar ball
#Server@server]# tar zxf bugzilla-4.4.tar.gz
Move bugzilla
#Server@server]# mv bugzilla-4.4 bugzilla
Take ownetship
#Server@server]# chown –R 751 bugzilla
#Server@server]# chown root:apache –R bugzilla
#Server@server]# cd bugzilla
Check for missing modules by...
#Server@server]# ./checksetup.pl --check-modules
#Server@server]# ./checksetup.pl
If necessary modules are installed properly, then it will ask to edit ./localconfig file.
#Server@server]# nano ./localconfig
Search for $ db_pass=' ' line in localconfig
Type a new password for mysql
$ db_pass=’your sql password here’
Edit /etc/my.cnf to increase bugzilla attachment file size
#Server@server]# nano /etc/my.cnf
Add the line in my.cnf file below::
max_allowed_packet=10M
Creating My SQL database bugs for bugzilla server::
start MySql server
#Server@server]# service mysqld start
#Server@server]# mysql
sql> create database bugs;
sql> GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY ‘your password for mysql’;
sql> FLUSH PRIVILEGES;
Or Create database from phpmyadmin
sql> FLUSH PRIVILEGES;
sql> quit;
Rerun checksetup.pl
#Server@server]# checksetup.pl
reconfirms that all the modules are present,and notices the altered localconfig file, which it assumes you have edited to your satisfaction. It compiles the UI templates, connects to the database using the ‘bugs’ user you created and the password you defined, and creates the ‘bugs’ database and the tables therein.
It will ask you for an email for the Bugzilla Administrator account and the password for that account.
#Server@server]# nano /etc/httpd/conf/httpd.conf
Type the below two line at the end of httpd.conf file:
PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T
PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl
Now restart Apache web server:
#Server@server]# service httpd restart
Open the port 80 in firewall
#Server@server]# iptables –A INPUT –p tcp --dport 80 –j ACCEPT
#Server@server]# service iptables save
Now you can run your bugzilla server on Browsers...
http://localhost/bugzilla
Update all the Repository
#Server@server~]$ su
Enter ROOT Password
#Server@server]# rpm –Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
#Server@server]# rpm –Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
#Server@server]# yum update
#Server@server]# yum install perl-CPAN
Also run this command for all neede install
#Server@server]# perl-GD perl-Chart perl-Template-GD perl-GDGraph perl-GDTextUtil perl-PatchReader perl-MIME-tools perl-LDAP perl-Authen-SASL perl-RadiusPerl perl-SOAP-Lite perl-JSON-RPC perl-JSON-XS perl-Test-Taint perl-HTML-Scrubber perl-Email-MIME-Attachment-Stripper perl-Email-Reply perl-TheSchwartz perl-Daemon-Generic perl-Math-Random-Secure perl-YAML perl-Class-Inspector httpd mysql-server mod_perl mod_perl-devel httpd-devel graphviz patchutils gcc perl-DateTime perl-Template-Toolkit perl-Email-Send perl-Email-MIME
#Server@server]# restorecon –Rv /var/www/html/
#Server@server]# cd /var/www/html
Now download latest bugzilla-4.4 tar.gz file from the below URL.
#Server@server]# wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.4.tar.gz
And untar the downloaded bugzilla tar ball
#Server@server]# tar zxf bugzilla-4.4.tar.gz
Move bugzilla
#Server@server]# mv bugzilla-4.4 bugzilla
Take ownetship
#Server@server]# chown –R 751 bugzilla
#Server@server]# chown root:apache –R bugzilla
#Server@server]# cd bugzilla
Check for missing modules by...
#Server@server]# ./checksetup.pl --check-modules
#Server@server]# ./checksetup.pl
If necessary modules are installed properly, then it will ask to edit ./localconfig file.
#Server@server]# nano ./localconfig
Search for $ db_pass=' ' line in localconfig
Type a new password for mysql
$ db_pass=’your sql password here’
Edit /etc/my.cnf to increase bugzilla attachment file size
#Server@server]# nano /etc/my.cnf
Add the line in my.cnf file below::
max_allowed_packet=10M
Creating My SQL database bugs for bugzilla server::
start MySql server
#Server@server]# service mysqld start
#Server@server]# mysql
sql> create database bugs;
sql> GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY ‘your password for mysql’;
sql> FLUSH PRIVILEGES;
Or Create database from phpmyadmin
sql> FLUSH PRIVILEGES;
sql> quit;
Rerun checksetup.pl
#Server@server]# checksetup.pl
reconfirms that all the modules are present,and notices the altered localconfig file, which it assumes you have edited to your satisfaction. It compiles the UI templates, connects to the database using the ‘bugs’ user you created and the password you defined, and creates the ‘bugs’ database and the tables therein.
It will ask you for an email for the Bugzilla Administrator account and the password for that account.
#Server@server]# nano /etc/httpd/conf/httpd.conf
Type the below two line at the end of httpd.conf file:
PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T
PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl
Now restart Apache web server:
#Server@server]# service httpd restart
Open the port 80 in firewall
#Server@server]# iptables –A INPUT –p tcp --dport 80 –j ACCEPT
#Server@server]# service iptables save
Now you can run your bugzilla server on Browsers...
http://localhost/bugzilla