Install Bugzilla On Ubuntu 20.04

0 views
Skip to first unread message

Roxine Denison

unread,
Aug 5, 2024, 7:43:16 AM8/5/24
to perpjentiramb
Makesure to follow guidelines and set up a root account with a decent password. See the links above for how to set up a LAMP server if you need it.Create a user bugzilla (change it if you want something else)

All dependencies are installed automatically, everything is configured automatically. Automatic install should work in most cases, even if Apache or Mysql are already installed and configured (unless some non-trivial changes in their configuration have been made)


I'm trying to install bugzilla on ubuntu + nginx and because I'm not a Linux expert, I encountered a problem at a certain stage.I did everything according to the instructions, and when I try to access the site I get the following error in error.log:


So running it with --all seems to have installed the SQLite driver without any problems, but for some reason I can't seem to install the MySQL driver. Again I need MySQL because thats what XAMPP uses and because I prefer MySQL regardless. I have a feeling it has something to do with this notest pragma error. Any ideas? Thanks in advance!


If you get an error saying that make (or anything else that obviously should be available) isn't isn't available in the repos, and you're on a fresh install, make sure you have run sudo apt-get update. I did a fresh install an hour ago and was installing bugzilla and hadn't restarted or run apt-get update and freaked out when I didn't see make available.. ran apt-get update, then ran sudo apt-get install make and it installed no problems.


Welcome to our tutorial on how to install Bugzilla bug tracker on Ubuntu 20.04. According to the About Bugzilla page, Bugzilla is a robust, featureful and mature defect-tracking system, or bug-tracking system. Defect-tracking systems allow teams of developers to keep track of outstanding bugs, problems, issues, enhancement and other change requests in their products effectively.


Well, once you setup your server with your desired requirements, you can proceed to install Bugzilla.Install Perl on Ubuntu 20.04Perl is the core requirement of installing and running Bugzilla. Bugzilla 5.0 and newer require Perl 5.10.1. However, if possible you should install Perl 5.12 or newer, as these newer versions have some useful improvements which will make your life easier.


Run system update;apt updateInstall Perl on Ubuntu 20.04, and other required (including some optional) package dependencies.apt install libappconfig-perl libdate-calc-perl libtemplate-perl libmime-tools-perl build-essential libdatetime-timezone-perl libdatetime-perl libemail-sender-perl libemail-mime-perl libemail-mime-perl libdbi-perl libdbd-mysql-perl libcgi-pm-perl libmath-random-isaac-perl libmath-random-isaac-xs-perl libapache2-mod-perl2 libapache2-mod-perl2-dev libchart-perl libxml-perl libxml-twig-perl perlmagick libgd-graph-perl libtemplate-plugin-gd-perl libsoap-lite-perl libhtml-scrubber-perl libjson-rpc-perl libdaemon-generic-perl libtheschwartz-perl libtest-taint-perl libauthen-radius-perl libfile-slurp-perl libencode-detect-perl libmodule-build-perl libnet-ldap-perl libfile-which-perl libauthen-sasl-perl libfile-mimeinfo-perl libhtml-formattext-withlinks-perl libgd-dev libmysqlclient-dev graphviz sphinx-common rst2pdf libemail-address-perl libemail-reply-perlYou can then verify the version of installed Perl on Ubuntu 20.04 using the command below;


You can use any other web server of your preference, but this guide used Apache. Hence, you can install Apache on Ubuntu 20.04 by running the command below;apt install apache2Start and enable Apache service to run on system boot;systemctl enable --now apache2Install and Configure Bugzilla Database on Ubuntu 20.04Install MariaDB database on Ubuntu 20.04Similarly, for the database, you can use PostgreSQL instead. But this guide used MariaDB, instead. Check that we installed the MySQL perl module above. Hence, to install MariaDB on Ubuntu 20.04, run the command belows;


Reload privileges table and exit the database;flush privileges;quitNext, insert the lines below to /etc/my.cnf.d/server.cnf file.sed -i.bak '/^[mysqld]/a max_allowed_packet=16M\nft_min_word_len=2' /etc/mysql/mariadb.conf.d/50-server.cnfRestart MariaDB;


Once you have created the Bugzilla MySQL/MariaDB database,and installed it to your web root directory, configure the database connection details. open the /var/www/html/bugzilla/localconfig configuration file and update the database connection details as created above.


Save and exit the file.Rerun the checksetup.pl script to verify the database connection and initialize some Bugzilla database schemas and create the required database tables and other configuration settings.


Once the Bugzilla is done, you are then asked to set the Bugzilla admin email and name and password....Looks like we don't have an administrator set up yet. Either this isyour first time using Bugzilla, or your administrator's privilegesmight have accidentally been deleted.Enter the e-mail address of the administrator: [email protected]Enter the real name of the administrator: GenTooEnter a password for the administrator account: Please retype the password to verify: [email protected] is now set up as an administrator.Creating initial dummy product 'TestProduct'...Now that you have installed Bugzilla, you should visit the 'Parameters'page (linked in the footer of the Administrator account) to ensure itis set up as you wish - this includes setting the 'urlbase' option tothe correct URL.checksetup.pl complete.Create Bugzilla Apache Site Configuration fileTo be able to access Bugzilla web interface, you need to create its Apache site configuration file.vim /etc/apache2/sites-available/bugzilla.confServerName bugzilla.kifarunix-demo.comDocumentRoot /var/www/html/bugzilla/AddHandler cgi-script .cgiOptions +Indexes +ExecCGIDirectoryIndex index.cgiAllowOverride Limit FileInfo Indexes Options AuthConfigErrorLog /var/log/apache2/bugzilla.error_logCustomLog /var/log/apache2/bugzilla.access_log commonSave and exit the configuration file.]


Check Apache syntax;apachectl -tIf no errors, restart it.systemctl restart apache2Testing the Bugzilla InstallationOnce you are done with the installation and setup of Bugzilla on Ubuntu 20.04, you can run the testserver.pl script to verify the installation and testing.


Once you have confirmed that all is fine, you can then access Bugzilla web interface via the url, -demo.com, of course as per this setup.If UFW is running, open port 80 or 443 depending on whether you are using HTTP or HTTPS;


You can then navigate to the Bugzilla URL on the browser. Such an interface welcomes you.You can then login using the administrator email and password you created above. You can as well create new accounts.Navigate through the Bugzilla and manage your application bugs.


Install Cheat Command on Ubuntu 20.04Tags bug tracker, bugzilla, bugzilla bug tracker, bugzilla ubuntu 20.04, install bugzilla ubuntu 20.04, Ubuntu 20.04SUPPORT US VIA A VIRTUAL CUP OF COFFEEWe're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!


Bugzilla is the best open source bug tracking system. Very simple to use with lot of features. Bugzilla allows you to track the bugs and collaborate with developers and other teams in your organization effectively.


Please review the output of the above install-module.pl to make sure everything got install properly. There is a possibility that some of the modules failed to install (may be because some required OS packages were missing).


Execute checksetup.pl without any argument, which will create a localconfig file in the current directory. The localconfig file contains the key configuration parameters used by the bugzilla (for example, mysql db username and password).


Execute the checksetup.pl (without any arguments) again to create the mysql bugzilla database. Since the localconfig file already exist, the second time when you execute the checksetup.pl, it will create the mysql database based on the information from localconfig file.


Hi Ramesh,

Could you please tell me the steps about setting up email configuration using SMTP for sending new account invitation. I have done this by changing the following parameters in Bugzilla Administration page:


I know it is 4 years later, but this guide really saved my bacon. I was installing bugzilla-4.4-5 on a rhel5 machine and never could get the documentation to line up with what I needed to do, so this guide did the trick. Thanks again.


Since i wanted to customize the Displayed error message for my application.

ex:

for any query related issues, its displaying the complete table structure and complete query information. i wanted to hide the data related to query from displaying.


Bugzilla needs to be installed through the command line with a compiler. You can allow SSH access to your account through the SSH Access section in your account's Control Panel as described in the SSH Access article. You will also need to enable the Compiling tools option on the same page.


Bugzilla needs a database to run. You need to create a database and a database user for your Bugzilla installation through the MySQL Databases section in your account's Control Panel. Instructions on how to create databases and database users are available in the Creating a MySQL database/user article. You can create a database through the Databases tab in this section. In this example, we are going to use a database called username_bugzilla:


You will also need to associate the bugzilladbuser user with the username_bugzilla database, giving the user all privileges to manage the database, through the Privileges tab:


You can download the installation package from the Bugzilla website. You will then need to upload it to your account. The file needs to be uploaded to the directory you wish to install Bugzilla in. Instructions on how to upload files are available in the Uploading files section. Once the archive has been uploaded, you can extract it through the File Manager in the Control Panel of your account by clicking on the archive. In this example, we will extract the files to the /home/username/www/bugzilla directory.

3a8082e126
Reply all
Reply to author
Forward
0 new messages