Make sure 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)
And create a database and set permissions for user bugzilla
mysql -u root -p
mysql> create database bugzilla;
mysql> grant all privileges on bugzilla.* to bugzilla@localhost;
You need database name, user name and password for the user later on.
Apache
Verify if Apache is installed:
apache2 -v
and
http://localhost
should show a welcome page or a website.
If not installed...install apache2
Configure apache2 as you normally would. See the links at the top for how to set up a LAMP server if you need more.
And now for the important part... setting up bugzilla in apache2:
Bugzilla uses a script checksetup.pl to check if everything is set up correctly and if things changed to set them up for you. By manually installing the perl modules you can skip this.
Check if all modules are installed:
cd /var/www/bugzilla/
sudo ./checksetup.pl --check-modules
If not installed...
sudo perl -MCPAN -e install
localconfig holds the configurations and needs to be set up. So...
sudo -H gedit localconfig
and change $db_name to the database name, #db_user to the user and $db_password to the password you used during setup of MySQL.
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)
Novice Ubuntu users are misled by the detailed build-it-from-tarballs instructions.
For Bugzilla you need...
Some remarks up front:
If any of these are already installed just keep an eye on settings that need to be set. Check these with what you used and change them to your needs.
If you need information about Perl, MySQL, Apache these are some LAMP how tos: 1, 2, 3, 4, 5.
Also have a look at this how to (from Saariko in comment) if the below does not work for you.
If anyone finds typos feel free to fix them, or if you can think of improvements feel free to add them in
Here we go...
Perl
Verify what perl you are using:
It should show something like this:
Natty uses 5.10. If yours is lower than 5.8.1 you need to upgrade it.
MySQL
Verify if you have a MySQL running with
If not installed install mysql-server mysql-admin mysql-client
Make sure 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 userbugzilla
(change it if you want something else)And create a database and set permissions for user
bugzilla
You need database name, user name and password for the user later on.
Apache
Verify if Apache is installed:
and
should show a welcome page or a website. If not installed...install apache2 Configure apache2 as you normally would. See the links at the top for how to set up a LAMP server if you need more.
And now for the important part... setting up bugzilla in apache2:
and edit in the following ...
(Note the trailing "/" on the first line)
Add a user
apache2
if you do not have this already.Add the user to apache2 variables...
and include
The
cgi
addhandler could be in another place if you install bugzilla from the repositories (see apache cgi how to)Bugzilla
Install bugzilla3
Or download the latest stable (4.0.2 at the moment) or latest cutting edge version from bugzilla. Short instruction on the latter:
Make sure the directory has rw permissions:
Perl modules for Bugzilla
Bugzilla uses a script
checksetup.pl
to check if everything is set up correctly and if things changed to set them up for you. By manually installing the perl modules you can skip this.Check if all modules are installed:
If not installed...
localconfig
holds the configurations and needs to be set up. So...and change $db_name to the database name, #db_user to the user and $db_password to the password you used during setup of MySQL.
After saving these settings
will add all kinds of tables to MySQL. Adding server group
apache2
to bugzilla:and add
To include these changes do a
and this will ask you to setup your administrator for bugzilla.
It works!!
Restart apache2
and open a browser and insert URL
and I have a working bugzilla login page on my own machine.
I think a much shorter answer would be much more helpful:
it asks a few questions. Then just open your browser and go to http://localhost/bugzilla3
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)
Novice Ubuntu users are misled by the detailed build-it-from-tarballs instructions.