Install Bugzilla on CentOS/Rocky OS
Install Bugzilla on CentOS 8/Rocky
I. Install Packages
Ref:
Step 1: Install EPEL packages:
Ref: https://docs.fedoraproject.org/en-US/epel/
$ dnf config-manager --set-enabled crb
$ dnf install epel-release
Step 2: Install bugzilla required packages:
$ dnf install git httpd httpd-devel mariadb-devel gcc mariadb-server mod_perl mod_perl-devel 'perl(autodie)' 'perl(CGI)' 'perl(Date::Format)' 'perl(DateTime)' 'perl(DateTime::TimeZone)' 'perl(DBI)' 'perl(DBD::mysql)' 'perl(DBIx::Connector)' 'perl(Digest::SHA)' 'perl(Email::MIME)' 'perl(Email::Sender)' 'perl(fields)' 'perl(JSON::XS)' 'perl(List::MoreUtils)' 'perl(Math::Random::ISAAC)' 'perl(Memoize)' 'perl(Safe)' 'perl(Template)' 'perl(URI)'
$ dnf install gd-devel graphviz patchutils 'perl(Apache2::SizeLimit)' 'perl(Authen::Radius)' 'perl(Authen::SASL)' 'perl(Cache::Memcached)' 'perl(Encode)' 'perl(Encode::Detect)' 'perl(File::Copy::Recursive)' 'perl(File::MimeInfo::Magic)' 'perl(File::Which)' 'perl(GD)' 'perl(GD::Graph)' 'perl(GD::Text)' 'perl(HTML::Parser)' 'perl(HTML::Scrubber)' 'perl(IO::Scalar)' 'perl(JSON::RPC)' 'perl(LWP::UserAgent)' 'perl(MIME::Parser)' 'perl(mod_perl2)' 'perl(Net::LDAP)' 'perl(Net::SMTP::SSL)' 'perl(SOAP::Lite)' 'perl(Test::Taint)' 'perl(XMLRPC::Lite)' 'perl(XML::Twig)'
Step 3: Download and install bugzilla package
$ cd /var/www/html/
$ git clone --branch release-X.X-stable https://github.com/bugzilla/bugzilla
Ex: X.X is version
Step 4: Install Perl required Package
$ cd /var/www/html/bugzilla/ && ./install-module.pl Chart::Lines Daemon::Generic Email::Reply HTML::FormatText::WithLinks PatchReader Template::Plugin::GD::Image TheSchwartz
$ ./install-module.pl --all // install all perl module
$./checksetup.pl --check-modules // check require module
Some problems when install:
Problems #1: Can't locate CPAN.pm in @INC
Solution:
$ yum -y install perl-CPAN
==============
Problems #2: No POSTGRES_HOME defined, cannot find automatically
No 'Makefile' created TURNSTEP/DBD-Pg-3.18.0.tar.gz
/usr/bin/perl Makefile.PL LIB="/var/www/html/bugzilla/lib" INSTALLMAN1DIR="/var/www/html/bugzilla/lib/man/man1" INSTALLMAN3DIR="/var/www/html/bugzilla/lib/man/man3" INSTALLBIN="/var/www/html/bugzilla/lib/bin" INSTALLSCRIPT="/var/www/html/bugzilla/lib/bin" INSTALLDIRS=perl -- NOT OK
Solution:
$ yum install postgresql-devel
II. Config Apache
# Edit config file
$ /etc/httpd/conf/httpd.conf
and follow Bugzilla Guide
III. Install Mariab DB
Ref: https://bugzilla.readthedocs.io/en/latest/installing/mysql.html#mysql
How to Install Mariab DB : https://www.digitalocean.com/community/tutorials/how-to-install-mariadb-on-centos-7
$mysql -uroot -p
-- Create DB
CREATE DATABASE IF NOT EXISTS bugs CHARACTER SET = ‘utf8’;
Change MariaDB Configuration:
// Allow Large Attachments and Many Comments
$ /etc/my.cnf.d/mariadb-server.cnf
[mysqld] # Allow packets up to 16M max_allowed_packet=16M
[mysqld] # Allow small words in full-text indexes ft_min_word_len=2
III. Setup Buzilla Config
$ ./checksetup.pl
// Run setup again
$ ./checksetup.pl
// Enter your administrator information
IV - Test Bugzilla
$ cd /var/www/html/bugzilla
$ ./testserver.pl http://localhost/
or access bugzilla front page in web browser.
Note: Must allow port 80 in firewall.
V - Bugzilla Basic Setup
4.1 - Access Bugzilla via : http://<your_ip>/bugzilla/
4.2 - Config Email
Administrator > Parameter > Email menu :
The domain name of the server (Parameter: smtpserver)
The username and password to use (Parameters: smtp_username and smtp_password)
Whether the server uses SSL (Parameter: smtp_ssl)
The address you should be sending mail ‘From’ (Parameter: mailfrom)
is updating...
Comments[ 0 ]
Post a Comment