The following software is required:
Perl (5.8.1 or above)
MySQL
Apache2
Bugzilla
1. perl
Check whether perl and its version are installed.
# Perl-v
2. install and configure mysql
Check whether mysql is installed
# Mysql -- version
If not, install mysql-server r mysql-admin mysql-client.
After installing Mysql, create a Bugzilla user
# Sudo useradd-d/home/bugzilla-m bugzilla # sudo passwd bugzilla
Create a database and grant database access permissions to the Bugzilla user
First, log on to the database as the root user.
# Mysql-u root-p password is your root Password
View Database
Mysql> show databases;
Select Database
Mysql> use mysql;
View database users
Mysql> selecthost, user, password from user;
Delete a user with no name
Mysql> delete from user whereuser = "";
Mysql> create database bugzilla; mysql> grant all privileges on bugzilla. * to bugzilla @ localhost;
Change the password of bugzilla
Mysql> update user setpassword = password ('bucketzilla ') where user = 'bucketzilla ';
At last, the permissions are reloaded in the mysql database authorization table.
Mysql> flush privileges;
Exit Database
Mysql> exit
Log on to the database with the Bugzilla user
# Mysql-u bugzilla-p
Enter Password
Login successful, mysql configuration not complete.
3. Apache2
Check it first
If you are prompted that apache2-v is not installed, run the following command to install # apt-get install apache2
After the installation is tested, enter http: // localhost in the browser. If It works is displayed! Installation is complete. Configure apache2 to open the apache2 configuration file # Add Alias/bugzilla/var/www/bugzilla/<directory/var/www/bugzilla at the end of sudo gedit/etc/apache2/apache2.conf.> Addhandler cgi-script. cgi. plOptions + Indexes + ExecCGI + FollowSymLinksDirectoryIndex. cgiAllowOverride Limit </directory> where/var/www/bugzilla/depends on the location where the bugzilla is extracted, depending on your own.
Add another apache2 user
# Sudo useradd-d/home/apache2-m apache2 # sudo passwd apache2 then # sudo gedit/etc/apache2/envvars # export secret = apache2 # export secret = complete configuration
4. Bugzilla
Install
Http://www.bugzilla.org/download/ 下/
Or
Wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.0.tar.gz#sudo tar-xvf bugzilla-4.0.2.tar # sudo mv/download/bugzilla-4.0.2/usr/local/create a connection directory # sudo ln-s/usr/local/bugzilla-4.0.2/var/www/bugzilla # sudo chown-R www-data: www-data/var/www/bugzilla if the connection directory cannot be accessed, change the directory access permission # chmod-R 777/var/www/bugzillaPerl modulesfor Bugzilla
# Cd/var/www/bugzilla/can also be directly executed in the/usr/local directory. I can access it in the connection directory in Ubuntu without modifying permissions, I performed it in the/usr/local/bugzilla-4.0.2 before I had permission to modify the connection directory under Debian. # Sudo./checksetup. pl -- check-modules # sudo perl-MCPAN-e install and then execute
# Sudo./checksetup. pl -- check-modules will prompt the command to install all packages and execute this command. Execute again # sudo. /checksetup. pl -- check-modules will prompt you to enter the email address, user name, password, and then modify the configuration file of Bugzilla # sudo gedit localconfig to modify the following items $ db_name = 'bugzilla '; $ db_user = 'bugzilla '; $ db_pass = 'bugzillpaswsword'; Save and execute # sudo. /checksetup. pl will prompt that the apache Working Group is not found. Open sudo gedit/var/www/bugzilla/localconfig to modify
$ Webservergroup = 'apache2 ';
Then check again
Sudo./checksetup. pl
5. Restart apache2.
When sudo/etc/init. d/apache2 restartapache2 is restarted, it may encounter an error. The error is forgotten and can be easily solved. Open the URL http: // localhost/bugzilla/
For details about Bugzilla, click here
For Bugzilla: click here
Install Bugzilla 4.2 On Fedora 16
Bugzilla Installation Process