Step1. Install Epel repository

yum install epel-release yum-utils –y

Step2. Install packages

yum install httpd mariadb mariadb-server httpd-devel mod_ssl mod_ssl mod_perl mod_perl-devel mariadb-devel php-mysql gcc gcc-c++ graphviz graphviz-devel patchutils gd gd-devel wget perl* -y

Step3. Start services

systemctl start httpd
systemctl start mariadb

Step4. Setup Database

mysql_secure_installation

Step5. Restart service

systemctl restart mariadb

Step6. Create database

mysql -u root -p
create database bugzilladb;
CREATE USER bug@localhost IDENTIFIED BY "bug";
GRANT ALL ON bugzilladb.* TO bug@localhost;
FLUSH PRIVILEGES;
exit

Step7. Download Bugzilla and tar file

wget http://ftp.mozilla.org/pub/webtools/bugzilla-5.0.tar.gz
tar -xvzf bugzilla-5.0.tar.gz

Step8. Move in HTML folder

mv bugzilla-5.0 /var/www/html/bugzilla

Step9. Change ownership

chown -R apache:apache /var/www/html/bugzilla

Step10. Install all module

cd /var/www/html/bugzilla/
/usr/bin/perl install-module.pl –all

Step11. Configure database in localconfig file

vi /var/www/html/bugzilla/localconfig
 
$db_host = 'localhost';
$db_name = 'bugzilladb';
$db_user = 'bug';
$db_pass = 'bug';
Save and close the file.

Step12. Run scrip to setup Bugzilla.

d /var/www/html/bugzilla/
./checksetup.pl
 
Note: During the process provide the administrator's credentials:
 •Administrator's e-mail address: admin@example.com
 •Administrator's real name: root
 •Administrator's password: your-admin-password

Step13. Create virtual host file /etc/httpd/conf.d/bugzilla.conf.

vi /etc/httpd/conf.d/bugzilla.conf

<VirtualHost *:80>
ServerAdmin root
DocumentRoot /var/www/html/bugzilla/
ServerName 192.168.33.83
ServerAlias localhost
<Directory /var/www/html/bugzilla/>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit FileInfo Indexes Options AuthConfig
</Directory>
ErrorLog /var/log/httpd/bugzilla.example.com-error_log
CustomLog /var/log/httpd/bugzilla.example.com-access_log common
</VirtualHost>

Step14. Restart the service

systemctl restart httpd.service

Step15. Access via browser.

http://server-ip-address

4 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here