Loading...

How to Install Bugzilla on CentOS 8

Simple.Predictable.Scalable

Easily deploy your favorite applications in seconds at an unbeatable price for your next projects.

Installing Bugzilla on CentOS 8

Bugzilla is an open-source bug tracking system that allows individuals and organizations to track and manage software bugs and issues. It provides a platform for collaboration and communication among developers, testers, and project managers.

Step 1: Update System Packages

First, update the system packages by running the following commands:

sudo dnf update -y
sudo dnf upgrade -y

Step 2: Install Apache web server and MySQL database server

Bugzilla requires a web server and database server to run. Install the Apache web server and MySQL database server by running the following commands:

sudo dnf install httpd mysql-server -y
sudo systemctl enable httpd
sudo systemctl enable mysqld
sudo systemctl start httpd
sudo systemctl start mysqld

Step 3: Install Perl and Required Perl Modules

Bugzilla is written in Perl, so you need to install Perl and the required Perl modules. Run the following commands to install Perl and the required Perl modules:

sudo dnf install perl perl-devel perl-CPAN perl-App-cpanminus -y
sudo cpanm install JSON
sudo cpanm install Template
sudo cpanm install Email::Sender::Transport::SMTP::TLS
sudo cpanm install DateTime
sudo cpanm install DateTime::TimeZone

Step 4: Download and Extract Bugzilla

Next, download the latest Bugzilla release and extract it into the Apache web server document root directory:

cd /var/www/html
sudo wget https://ftp.mozilla.org/pub/webtools/bugzilla-5.0.6.tar.gz
sudo tar -xzf bugzilla-5.0.6.tar.gz
sudo mv bugzilla-5.0.6 bugzilla
sudo chown -R apache:apache bugzilla/

Step 5: Configure MySQL Database

Now, it's time to configure the MySQL database for Bugzilla. Run the following commands:

sudo mysql_secure_installation
sudo mysql -u root -p
Enter password: [Enter MySQL root password]
CREATE DATABASE bugzilla;
GRANT ALL PRIVILEGES ON bugzilla.* TO 'bugzilla'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT;

Step 6: Configure Bugzilla

Next, configure Bugzilla by editing the configuration file:

sudo vi /var/www/html/bugzilla/localconfig

Update the MySQL settings with the database name, username, and password:

$db_host = 'localhost';
$db_name = 'bugzilla';
$db_user = 'bugzilla';
$db_pass = 'password';

Save and exit the file.

Step 7: Run the Bugzilla Installation Wizard

Now, you can run the Bugzilla installation script to finalize the installation:

sudo perl /var/www/html/bugzilla/checksetup.pl

Follow the prompts and provide the necessary information such as the admin email address and URL. It will also perform necessary database updates.

Step 8: Set Up Apache Virtual Host

Create a virtual host configuration file for Bugzilla:

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

Add the following content to the file:


    ServerAdmin [email protected]
    DocumentRoot /var/www/html/bugzilla
    ServerName bugzilla.example.com

    
        AddHandler cgi-script .cgi
        Options +ExecCGI
        DirectoryIndex index.cgi index.html
        AllowOverride All
        Require all granted
    

    ErrorLog /var/log/httpd/bugzilla-error.log
    CustomLog /var/log/httpd/bugzilla-access.log combined

Save and exit the file.

Step 9: Restart Apache

Finally, restart the Apache web server to apply the changes:

sudo systemctl restart httpd

Congratulations! You have successfully installed Bugzilla on CentOS 8. You can access it by navigating to the configured URL or domain name.

Refer A Friend
Get $25

Installing Bugzilla on CentOS 8
Bugzilla installation on CentOS 8
CentOS 8 Bugzilla installation guide
Bugzilla installation guide for CentOS 8
CentOS 8 Bugzilla setup
Bugzilla setup on CentOS 8
Step-by-step guide to install Bugzilla on CentOS 8
How to install Bugzilla on CentOS 8
Bugzilla installation tutorial for CentOS 8
CentOS 8 Bugzilla installation steps

Why Customers Love Us

What our customers say about us

Ready To Get Started For Free?

Create your free account today.