Install and configure Bugzilla in Gentoo Linux

Source: Internet
Author: User

The installation environment in this article is Gentoo Linux. In theory, other Linux versions can also be used as a reference.

Crob original, reprinted please indicate the source.

 

Environment Introduction

Linux DOTC 2.6.28-gentoo-r4 #2 SMP Fri Jun 5 19:36:48 CST 2009 i686 Intel (r) core (TM) 2 Duo CPU t5470 @ 1.60 GHz genuineintel GNU/Linux
GCC version 4.3.2 (Gentoo 4.3.2-R3 p1.6, pie-10.1.5)

 

[Ebuild R] www-servers/Apache-2.2.11 use = "SSL-debug-doc-LDAP (-SELinux) -SNI-static-suexec-threads "Authorization =" actions alias auth_basic authentication n_dbm authn_default authn_file authentication using Autoindex cache Dav authentication dav_lock deflate dir disk_cache env expires ext_filter file_cache Filter include info log_config logio mem_cache mime ready negotiation rewrite history speling status unique_id userdir UserTrack history-asis-auth_digest-Example-cern_meta-charset_lite-DBD-dumpio-Ident-Imagemap-Example-proxy-Example -proxy_balancer-proxy_connect-proxy_ftp-proxy_http-substitute-version "apache2_mpms ="-event-Itk-peruser-prefork-worker "0 KB
[Ebuild R] Dev-DB/mysql-5.0.70-r1 use = "berkdb Perl SSL-big-tables-cluster-debug-embedded-extraengine-Latin1-max-idx-128-minimal (-SELinux) -Static "0 KB
[Ebuild R] www-apps/bugzilla-3.0.5 use = "graphviz modperl MySQL vhosts-extras-Postgres" linguas = "-de" 0 KB



This document assumes that you have installed the above software packages.

 

1. Install software

# Echo "www-apps/Bugzilla apache2 graphviz modperl MySQL vhosts">/etc/portage/package. Use

# Emerge www-apps/Bugzilla www-Apache/mod_perl www-servers/Apache

 

2. Configure appach


# Vim/etc/apache2/httpd. conf

Add the following content before the end of the file


# For Bugzilla
Listen 8666.
#### Directory entry added by the beast in black on 3-Aug-2006
# For Bugzilla. God save us all.
<Directory/var/www/Bugzilla>
Addhandler CGI-script. cgi
Options + indexes + execcgi + followsymlinks
Directoryindex index. cgi
AllowOverride limit
</Directory>



Check whether include/etc/apache2/vhosts. d/*. conf exists in httpd. conf. If not, add it.

 

 

3. Configure the appache vhost of Bugzilla



# Vim/etc/apache2/vhosts. d/bugzilla-vhost.conf

The file content is as follows. Change the IP address to the correct address. If servername does not know what it is, do not change it.

Namevirtualhost*: 8666
<Virtualhost *: 8666>
Servername "myserver.mydomain.com"
DocumentRoot "/var/www/Bugzilla/htdocs"
<Directory "/var/www/Bugzilla/htdocs">
Addhandler CGI-script CGI
Options + indexes + execcgi + followsymlinks
Directoryindex index. cgi
AllowOverride all
Order allow, deny
Allow from all
</Directory>
</Virtualhost>

Run the following command to generate the Apache Virtual Host Configuration and directory. Change 3.0.5 to the version number of the currently installed Bugzilla.

# Webapp-config-I-H Bugzilla 3.0.5

After the execution is complete, the bugzilla is installed in/var/www/Bugzilla/htdocs/

 

 

4. Configure MySQL

# Vim/etc/MySQL/My. CNF

[Mysqld]

# Allow packets up to 1 m

Max_allowed_packet = 1 m

# Allow small words in full-text indexes

Ft_min_word_len = 2

 

After my. CNF is modified,/etc/init. d/MySQL restart

Next, add the bugs user and database in MySQL and assign permissions.

 

// Log on to MySQL

# Mysql-u root-P

# Password

// Create a user

Mysql> insert into mysql. User (host, user, password) values ("localhost", "bugs", password ("systex "));

// Refresh the system permission list

Mysql> flush privileges;

// Create a database bugs

Mysql> Create Database bugs;

// Authorize the bugs user to have all the permissions of the bugs database.

Mysql> grant all privileges on bugs. * to bugs @ localhost identified by "systex ";

// Refresh the system permission list

Mysql> flush privileges;

 

 

5. Configure Bugzilla

Run the following command to configure Bugzilla:

# PERL/var/www/Bugzilla/htdocs/checksetup. pl

If the execution is completed, enter the e-mail address of the Administrator: indicates that all Perl modules required by the bugzilla have been installed. Enter the admin email, name, and password as prompted.

If other prompts for installing the Perl module components are displayed after execution, follow the prompts to run all the commands displayed by running root. Some commands are optional and do not need to be installed. Then, checksetup. pl will be run.

 

 

6. Configure Bugzilla localconfig

Note that you must execute checksetup. pl in step 1 after each localconfig modification.

# Vim/var/www/Bugzilla/htdocs/localconfig

Find $ db_pass = 'systex'; fill in the MySQL password
In this example, the password is systex and MySQL.

After the modification, run the following command again to configure Bugzilla

# PERL/var/www/Bugzilla/htdocs/checksetup. pl

 

 

7. Restart Apache and MySQL

#/Etc/init. d/apache2 restart

#/Etc/init. d/MySQL restart

 

Enter http: // 127.0.0.1: 8666 in the browser to open the bugzill page.

 

 

8. Sendmail

In my Gentoo, after emerge Sendmail is configured as the default, you will receive an email. However, it usually takes one to two hours to receive the email after testing. Then try to replace Postfix as the SMTP server.

 


 

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.