How to Install Bugzilla on Fedora Server

Bugzilla is an open-source bug tracking system that helps in managing software development projects. In this tutorial, we will install the latest version of Bugzilla on Fedora server.

Prerequisites:

Step 1: Install Required Packages

First, make sure that your system is updated:

sudo dnf update -y

After that, install the required packages for Bugzilla:

sudo dnf -y install httpd mysql mysql-server php php-common php-cli php-mysqlnd perl make wget gcc

Step 2: Install Bugzilla

Download the latest Bugzilla source code from their website:

wget https://www.bugzilla.org/download.cgi

Extract the downloaded archive:

tar -xvzf bugzilla-*.tar.gz

Rename the extracted directory to "bugzilla":

mv bugzilla-* bugzilla

Move Bugzilla to /var/www/html/:

sudo mv bugzilla /var/www/html/

Configure the permissions:

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

Step 3: Configure the Database

Start the MySQL service:

sudo systemctl start mysqld

Run the MySQL secure installation script:

sudo mysql_secure_installation

Enter the root password and answer the questions.

Create a new database and a user for Bugzilla:

sudo mysql -u root -p

CREATE DATABASE bugsdb;
GRANT ALL PRIVILEGES ON bugsdb.* TO 'bugzillauser'@'localhost' IDENTIFIED BY 'mynewpassword';
FLUSH PRIVILEGES;
EXIT;

Step 4: Configure the Apache Web Server

Create a new Apache configuration file:

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

Add the following content to the file:

<VirtualHost *>
    ServerName bugzilla.example.com
    DocumentRoot /var/www/html/bugzilla

    <Directory /var/www/html/bugzilla>
        AddHandler cgi-script .cgi
        Options +Indexes +ExecCGI
        DirectoryIndex index.cgi
        AllowOverride Limit FileInfo Indexes
    </Directory>

    # If you don't have SSL enabled, you won't need this section.
    SSLEngine on
    SSLCertificateFile /path/to/bundle.crt
    SSLCertificateKeyFile /path/to/private.key

</VirtualHost>

Save and close the file.

Force the Apache server to reload the settings:

sudo systemctl reload httpd

Step 5: Configure Bugzilla

Navigate to the Bugzilla directory:

cd /var/www/html/bugzilla

Start the Bugzilla configuration script:

sudo ./checksetup.pl

Follow the prompts and enter the database details that you created in Step 3.

Run the same command again, but this time hit E to update your environment:

sudo ./checksetup.pl -r

Step 6: Access Bugzilla

Restart the HTTPD service:

sudo systemctl restart httpd

Now, you can access the Bugzilla web interface by navigating to:

https://<server-ip-or-domain-name>/bugzilla/

You will be prompted to create a new account with administrative privileges the first time you access Bugzilla.

That's it! You've successfully installed Bugzilla on Fedora Server.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!