How to Install Bugzilla on macOS
Bugzilla is a web-based software which is used for bug tracking and testing management. In this tutorial, we will see how to install Bugzilla on macOS.
Prerequisites
- An updated version of macOS
- Perl 5.10.1 or higher
- MySQL 5.5.3 or higher
- Apache web server version 2.x or higher
- A user account with administrative privileges
Steps:
Download the latest version of Bugzilla from the official website https://www.bugzilla.org/.
Extract the downloaded Bugzilla archive file and move it to the desired location.
Rename the extracted folder with a name of your choice.
Edit the "localconfig" file located in the "Bugzilla" folder. If you are not comfortable with command-line editing, you can use a text editor like TextEdit.
Set the following variables in the "localconfig" file:
$db_driver = 'mysql'; $db_host = 'localhost'; $db_name = '<database name>'; $db_user = '<database username>'; $db_password = '<database password>';Replace
<database name>,<database username>, and<database password>with your own values.Create a new database and a new user using the MySQL command line interface.
mysql> CREATE DATABASE <database name>; mysql> CREATE USER '<database username>'@'localhost' IDENTIFIED BY '<database password>'; mysql> GRANT ALL PRIVILEGES ON <database name>.* TO '<database username>'@'localhost';Install the required Perl modules using the "checksetup" script located in the "Bugzilla" folder.
$ cd Bugzilla $ perl checksetup.pl --check-modulesInstall the missing modules if any. Use the following command to install modules using CPAN.
$ sudo cpan cpan> install <module name> cpan> qRepeat step 7 and 8 until all the required modules are installed.
Run the "checksetup" script again to initialize the database.
$ perl checksetup.plStart the Apache web server.
$ sudo apachectl startNavigate to the Bugzilla installation URL in your web browser.
http://localhost/<Bugzilla folder name>Replace
<Bugzilla folder name>with the name you chose in step 3.Follow the Bugzilla installation wizard.
Congratulations! You have successfully installed Bugzilla on your macOS machine.