6 Modify Perl script files: 6.1 I have downloaded the concept of the modified package provided. Please see: 1. Open the D: /bugzilla/defParams.pl file, position to the end of the file, do the following information modification: 2. Replace Bugzilla Access Page: Replace HTTP: //
For example: $ db_pass = "i am ladeng"; 6.2 No download of the modified package provided by me: 1. Open the D: / bugzilla under all .cgi files, remove the last line T character, as follows: for example : #! / Usr / bin / perl-wt => #! / Usr / bin / perl -w 2. Open all the .cgi files under D: / bugzilla, find the Require "CGI.PL"; add a line behind it : Require "globals.pl"; Note G must write, otherwise Perl will report some files unable to locate; but there are several files very special, must be written as Require "globals.pl", it is strange, these files are: token. CGI, UserPrefs.cgi, token.pm, this question is not aware of the reason, what is the reason for the reason, please tell me :) 3. Open the d: /bugzilla/globals.pl file, in front of Use Bugzilla Join the following message Send code: Sub sendmail {MY ($ MSG, $ Person) = @_; user net :: smtp; my $ smtp_server = param ("mailserver"); My $ SMTP_USER = Param ("Mailuser"); MY $ SMTP_PASS = Param ("mailpass"); # $ Person. = param ('emailsuffix'); MY $ SMTP = Net :: SMTP-> New ($ SMTP_SERVER) || DIE 'Cannot Connect To Server /' $ SMTP_SERVER / ''; $ SMTP-> Auth ($ SMTP_USER, $ SMTP_PASS); $ SMTP-> Mail ($ SMTP_USER); $ SMTP-> To ($ Person); $ SMTP-> DATA (); $ SMTP-> Datasend ($ msg); $ SMTP-> DATAEND (); $ SMTP-> quit;} 4. Open the D: /Bugzilla/defParams.pl file, modify the default language settings: Find name => 'Language' Modify default => 'en' to default => 'CN' Find name => DEFAULTLANGUAGUE 'Modify default => 'en' is default => 'CN' 5. Open the D: /Bugzilla/defParams.pl file, modify the default Bugzilla login page: Find name => 'urlbase' to modify default => 'http: // .... The specific Bugzilla landing page is modified.
6. Open the D: / bugzilla / defparams.pl file, add 3 email notifications to the global parameter configuration item: 1 MailServer (mail send server address) {name => 'mailser', desc => 'mail-server assigned by Jackey In 2004.02.02! ', Type =>' t ', default =>' pop3.263.net '}, 2 Mailuser (mail sender mailbox) {name =>' mailuser ', desc =>' Mail-User Assigned by jackey in 2004.02.02! ', type =>' t ', default =>' yoyo@263.net '}, 3 mailpass (mail sender password) {name =>' mailpass ', desc =>' mail -Pass assigned by jackey in 2004.02.02! ', Type =>' t ', default =>' I am lade '}, 7. Open .cgi, .pl, .pm file for email configuration modification : The specific method is to block the original mail to send code Open Sendmail, replace it into a custom sendmail (...) function.
1 Open d: /bugzilla/cgi.pl and change Open Sendmail ($ msg, $ login); 2 Open d :/bugzilla/token.pm, change Open Sendmail to: Sendmail ($ Message, $ VARS -> {'emaildress'}; 3 Open d: /bugzilla/whineatnews.pl, change Open Sendmail to: Sendmail ($ MSG, $ Substs {'email'); 4 Open D: /Bugzilla/move.pl The Open Sendmail is changed to: Sendmail ($ msg, $ to); 5 Open D: /Bugzilla/importXML.PL, change Open Sendmail to: Sendmail ($ header. $ Message. "/ N", $)); 6 Open D: /Bugzilla/Bugmail.pm, change Open Sendmail to: Sendmail ($ MSG, $ Person) Open D: /Bugzilla/flag.pm, change Open Sendmail to: Sendmail ($ Message, $ FLAG- > {'type'} -> {'cc_list'}); 8 Open d: /bugzilla/globals.pl, change Open Sendmail to: Sendmail ($ MSG, $ Name); 8. Open D: / Bugzilla / Checksetup .pl file, comment out with the platform-related code: [3967-3972, 4004-4008] # $ sig {hup} = / & bailout; # $ sig {int} = / & bailout; # $ sig {quit} = / & bailout # $ Sig {term} = / & bailout; #system ("stty", "- echo"); # disable input echoing 9. Open D: /Bugzilla/checksetup.pl file, modify the mysql installation path: Find my $ mysql_binaries = `Which mysql`; => my $ mysql_binaries =" d: // mysql // bin // mysql "10. Open d: /bugzilla/checksetup.p l File, modify the CVSNT installation path: (Installing CVSNT to be modified) Locate MY $ CVS_EXECUTABLE = `Which CVS`; => MY $ CVS_EXECUTABLE =" D: //cvsnt//cvs.exe "; 11. Open d: /Bugzilla/checksetup.pl file, modify WebServergi information: Find my $ webservergid = getGRNAM ($ my_webservergroup) => my my $ webservergid = '8' 12. Open D: /Bugzilla/checksetup.pl file, correct the Enter the Route This is due to the difference between UNIX and Windows platform: UNIX's Enter, and Windows is / r / n, so you need to remove a character.
Find Chomp $ login; add a line of Chop $ login; find ChOMP $ realname; add a line of Chop $ RealName; find ChOMP $ Pass1; add a line of Chop $ Pass1; find ChOMP $ Pass2; 13. Open CMD.exe Go to the D: / Bugzilla directory, type perl checksetup.pl, run, then generate some files, open the generated localconfig file, modify the following information: $ index_html = 1 (Generate index.html) $ mysqlpath = "D: // mysql // bin "(Your MySQL / BIN path) $ WebServerGroup =" 8 "$ db_user =" BUGS "(mysql login user name) $ db_pass = '