For Bugzilla you need...
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 to's: 1, 2, 3, 4, 5.
Note: also have a look at this how to (from Saariko in comment) in below does not work for you.
In case anyone finds typo's feel free to fix them or improvements feel free to add them in
Here we go...
- Per l(5.8.1 or above)
- MySQL
- Apache2
- Bugzilla
- Perl modules
- Bugzilla using apache
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 to's: 1, 2, 3, 4, 5.
Note: also have a look at this how to (from Saariko in comment) in below does not work for you.
In case anyone finds typo's feel free to fix them or improvements feel free to add them in
Here we go...
- Perl
Verify what perl you are using:
It should show something like this:perl -v
Natty uses 5.10. If yours is lower than 5.8.1 you need to upgrade it.This is perl, v5.10.1 (*) built for i686-linux-gnu-thread-multi (with 53 registered patches, see perl -V for more detail)
- MySQL
Verify if you have a MySQL running with
If not installed install mysql-server mysql-admin mysql-clientmysql --version
Make sure to follow guidelines and set up aroot
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 usersudo useradd -d /home/bugzilla -m bugzilla sudo passwd bugzilla
bugzilla
You need database name, user name and password for the user later on.mysql -u root -p mysql> create database bugzilla; mysql> grant all privileges on bugzilla.* to bugzilla@localhost;
- Apache
Verify if Apache is installed:
andapache2 -v
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.http://localhost
And now for the important part... setting up bugzilla in apache2:
and edit in the following ...sudo gedit /etc/apache2/apache2.conf
(Note the trailing "/" on the first line)Alias /bugzilla/ /var/www/bugzilla/
Addhandler cgi-script .cgi .pl Options +Indexes +ExecCGI +FollowSymLinks DirectoryIndex index.cgi AllowOverride Limit
Add a userapache2
if you do not have this already.
Add the user to apache2 variables...sudo useradd -d /home/apache2 -m apache2 sudo passwd apache2
and includesudo gedit /etc/apache2/envvars
Theexport APACHE_RUN_USER=apache2 export APACHE_RUN_GROUP=apache2
cgi
addhandler could be in another place if you instal 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 had rw permissions:sudo tar -xvf bugzilla-4.0.2.tar sudo mv /download/bugzilla-4.0.2 /usr/local/ sudo ln -s /usr/local/bugzilla-4.0.2 /var/www/bugzilla
sudo chown -R www-data:www-data /var/www/bugzilla
- Perl modules for Bugzilla
Bugzilla uses a scriptchecksetup.pl
to check if everything is set up correcly 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...cd /var/www/bugzilla/ sudo ./checksetup.pl --check-modules
sudo perl -MCPAN -e install
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.sudo gedit localconfig
After saving these settings$db_name = 'bugzilla'; $db_user = 'bugzilla'; $db_pass = 'bugzilla@pwpspaswsword';
will add all kinds of tables to MySQL. Adding server groupcd /var/www/bugzilla/ sudo ./checksetup.pl
apache2
to bugzilla:
and addsudo gedit /var/www/bugzilla/localconfig
To include these changes do a$webservergroup = 'apache2';
and this will ask you to setup your administrator for bugzilla.cd /var/www/bugzilla/ sudo ./checksetup.pl
- It works!!
Restart apache2
and open a browser and insert URLsudo /etc/init.d/apache2 restart
and I have a working bugzilla login page on my own machine.http://localhost/bugzilla/
I think a much shorter answer would be much more helpful:
sudo apt-get install bugzilla3
No comments:
Post a Comment