Bugzilla installation configuration process record
Source: Internet
Author: User
I configured a bugzilla in the previous group because of project requirements, and encountered some minor problems in the middle, so I recorded the process. after several months of operation, I moved from the Internet to the intranet, these two short articles, "bugzilla installation and configuration process Notes" and "bugzilla migration process Notes", are also recorded to be noted, I hope that I have configured a bugzilla because of the project requirements in the previous group. I also encountered some minor troubles, so I recorded the process. a few months later, the migration from the Internet to the intranet also made some records, so these two short articles, "bugzilla installation and configuration process Notes" and "bugzilla migration process Notes", were formed to be noted, I hope it will be of reference significance to you.
Note: I also got the code for sending emails from google and forgot the source. please forgive me.
0. Preparation:
Apache installed,
Mysql3.23 +, perl 5.6 +
Download bugzilla2.18.4. The latest version 2.20 requires the Perl module DBD: mysql2.9 or above. it is very troublesome to install this module. you can skip this step and use bugzilla 2.18.4.
1. Run checksetup. pl to check the required package. if the module is missing, you can use CPAN to install the module "Bundle: Bugzilla"
Eg. manually install the xxx module
Perl-MCPAN-e install 'XXX'
2. Modify the localconfig generated by checksetup. pl, especially
$ Db_host = "localhost ";
$ Db_name = "bugs ";
$ Db_user = "bugs ";
$ Db_pass = "xxxx ";
3. Create a database in mysql
Create database bugs;
Grant select, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, DROP,
References on bugs. *
Bugs @ localhost identified by 'XXX ';
Flush privileges;
Note that xxxx in identified by 'xxxx 'must be the same as the password set in $ db_pass.
4. Run checksetup. pl again
5. Configure apache
Assume that the IP address of your machine is YourIP, and the configuration file of apache is./etc/httpd/conf/httpd. conf.
Modify Port: Listen 8080
Cgi: AddHandler cgi-script.cgi allowed
Add Directory:
Alias/bugzilla/"/var/www/html/bugzilla-2.18.4"
Options ExecCGI
AllowOverride Limit
Configure the DirectoryIndex and add index. cgi to the end of the row to search for the index. cgi file when you enter the Bugzilla Directory:
DirectoryIndex index.html. var index. cgi
Modify the default character set to support Chinese characters:
AddDefaultCharset to change the ISO-8859-1 to GB2312
The executable file is/usr/sbin/httpd.
6. Restart apache
/Sbin/service httpd restart
7. Access method:
Http ://
YourIP: 8080/bugzilla/
8. Interface Chinese to Chinese
Not done
9. About Email Server
Use a ready-made mailbox
Modify the BugzillaBugMail. pm file.
SendmailWhile other email servers are used to send emails, and accounts are used (assumed to be
XXXbugs@xxx.com) Mail!
(Modify the sub MessageToMTA ($; $) function
The modified function is as follows (replace 10.61.0.9 with your real mail server ip address, replace the XXXbugs@xxx.com with a real mailbox, as the mailbox that bugzilla uses to send emails to its members, replace XXXbugs and XXXbugsPwd with your real email account and password ):
Sub MessageToMTA ($; $ ){
My ($ msg, $ rcpt_to) = (@_);
# Add this line
My ($ msg, $ person) = (@_);
My $ sendmailparam = "";
Unless (Param ("sendmailnow ")){
$ Sendmailparam = "-ODeliveryMode = deferred ";
} If ($ enableSendMail = 1 ){
# Remove these lines
# Open (SENDMAIL, "|/usr/lib/sendmail $ sendmailparam-t-I") |
# Die "Can't opensendmail ";
#
# Print SENDMAIL trim ($ msg). "/n ";
# Close SENDMAIL;
#
# Add these lines
Use Net: SMTP;
My $ smtp_server = '10. 61.0.9 ';
# Use die on error, sothat the mail will be in the 'unsent mails 'and
# Can be sent from thesanity check page.
My $ smtp = Net: SMTP-> new ($ smtp_server) |
Die 'cannot connect toserver/'$ smtp_server /'';
# Auth sender, XXXbugs is the mailbox used as bugzilla daemon.
$ Smtp-> auth ('xxxbugs ', 'xxxbugspwd') or die "auth error/n ";
$ Smtp-> mail ('xxxbugs @ xxx.com '); # from person
$ Smtp-> to ($ person); # ...... person .........
$ Smtp-> data ();
$ Smtp-> datasend ($ msg); # ...... msg .........
$ Smtp-> dataend ();
$ Smtp-> quit;
}
}
After modification, test with test. pl and report Can't locate Authen/SASL. pm in @ INC,
Use/usr/bin/perl-MCPAN-e 'Install "Authen: SASL" 'to install the Authen: SASL module!
10. On the management page, change the mail template sender
XXXbugs@xxx.com (originally bugzilla-daemon)
You can also change the sender of each mail template to XXXbugs@xxx.com from the installation directory of bugzilla! (Originally bugzilla-admin-daemon)
In this way, you can reply to this email if you have any questions!
Data/template/en/default/account/password/forgotten-password.txt.tmpl: $ output. = "/nFrom: bugzilla-admin-daemon/nTo :";
Data/template/en/default/account/cancel-token.txt.tmpl: $ output. = "/n/nFrom: bugzilla-admin-daemon/nTo :";
Data/template/en/default/account/email/change-new.txt.tmpl: $ output. = "/nFrom: bugzilla-admin-daemon/nTo :";
Data/template/en/default/account/email/change-old.txt.tmpl: $ output. = "/nFrom: bugzilla-admin-daemon/nTo :";
Template/en/default/account/cancel-token.txt.tmpl: From: bugzilla-admin-daemon
Template/en/default/account/email/change-new.txt.tmpl: From: bugzilla-admin-daemon
Template/en/default/account/email/change-old.txt.tmpl: From: bugzilla-admin-daemon
Template/en/default/account/password/forgotten-password.txt.tmpl: From: bugzilla-admin-daemon
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