In this tutorial we will learn, how to install bugzilla with MySQL 5.6 on Ubuntu 14.04 LTS server. Bugzilla famously known as bug tracking tool and it is a Mozilla project.
Login into Ubuntu server. And follow the below given steps.
Install Apache 2.4 , MySQL server 5.6 and other dependencies.
While installation, on screen you will see window to set MySQL root password. Hence, set the desired mysql root password.
You may download latest package from Bugzilla Download page.
Now decompress the downloaded bugzilla package by using tar command.
Check downloaded bugzilla package name in case you have new version ,replace with bugzilla-4.4.6.tar.gz in below given command.
Now move the decompressed bugzilla package which you got from above tar command. In our case the directory called bugzilla-4.4.6 we got after extracting by using tar command.
The bugzilla-4.4.6 directory will be moved to /var/www/html/ and also renamed to directory called bugzilla.
Now change owner and group of bugzilla at /var/www/html/ . Because we are using Apache 2.4 in Ubuntu system, the web server user and group is with same name called www-data . Hence, we change owner and group with www-data to /var/www/html/bugzilla.
Login into mysql server by using below command and give mysql root password when it prompt.
After login into MySQL Server, you will get mysql> prompt .
Create Database, user and grant privileges to bugzilla user on bugzilla database.
Copy-paste and save the below given contents in bugzilla.conf file.
Replace ec2-54-165-142-204.compute-1.amazonaws.com with your bugzilla domain name.
Enable apache module cgi,headers,expires and rewrite.
Run the script ./checksetup.pl for pre check.
In output, you will read about further requirements for bugzilla. Now move to next step.
After running ./checksetup.pl script, the new file called localconfig will be created. Edit the file and give the information.
Set below given parameters in localconfig file. Replace the values as per your information.
The below given is reference from our system. This is complete set we have done in localconfig file.
After properly setting the localconfig file. Rerun the script ./checksetup.pl .
At the end of script output, you will get to provide information for admin user.
You can test the bugzilla server by below given command.
Now open the bugzilla site in web browser, use the domain name which you set for bugzilla.
And try login with admin user.
Now you can use and explore the bugzilla after login as admin.
To disable the user self registration, read our this post.
TEST-OK Webserver is running under group id in $webservergroup.
Your web server could not fetch http://localhost/images/padlock.png.
Check your web server configuration and try again.
Your web server could not fetch http://localhost/bugzilla/images/padlock.png.
I need some info before troubleshooting further.
Let me know what is the output.
Great installation instructions. I followed your instructions and was able to install Bugzilla. However, you did not give example of a URL to run Bugzilla. Please kindly provide an URL to invoke Bugzilla from a browser.
Thank you for reaching us on bugzilla question.
For URL, you must have DNS in place. Set A record in DNS for bugzilla and straight forward it will work.
Same issue on Steve. After issue command > service apache2 restart.
Use of uninitialized value $response in pattern match (m//) at ./testserver.pl line 101.
Use of uninitialized value $response in pattern match (m//) at ./testserver.pl line 103.
TEST-FAILED Webserver is permitting fetch of http://localhost/localconfig.
This is a serious security problem.
Check your web server configuration.
Thank you for heads, I will check this issue . Can you tell me which bugzilla package version have you installed in your system.
Thanks for a very clear document, I need to build a test bugzilla site and have followed your instructions I have next to no experience with ubuntu or any form of Linux. When I get to this point a2enmod cgi headers expires rewrite i get a AH00526 Line 8 invalid command AllowOveride can yo give a pointer to what I might be doing wrong.
First of all thanks for selecting our tutorial. We need some more clear information, which linux you are using.
To get this information you can use these commands cat /etc/issue and cat /etc/redhat-release .
As I am not sure which OS you are using hence given 2 commands.