Win2000 Bugzilla Installation Record (2)

xiaoxiao2021-03-06  55

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: // Provides the address of Bugzilla access to you, mainly for E-mail notifications. For example: http: //192.168.0.1/bugzilla/ (the last backslash must be added, otherwise the problem will be issued.) 3. Replace the E-mail server address: find , replace The server address of your mailbox is mainly used for E-Mail notifications. For example: POP3.263.NET 4. Replace E-mail's sender address: find , replace the source address of your mailbox, Bugzilla system mail notification source address. For example: yoyo@263.net 5. Replace the E-mail sender's mailbox password: find , replace it with your mailbox password, mainly for mail servers that require authentication. For example: I am Ladengj 6. Open the D: / Bugzilla / localconfig file, do the following information modification: 7. Modify the mysql installation path: Find $ mysqlpath = Replace with your MySQL installation path, pay attention to use double slash. For example: $ mysqlpath = "d: // mysql // bin // mysql"; 8. Modify the login password for the BUGS user of the login MySQL system: Find $ db_pass = Replace the login password for the bugs user created when installing MySQL.

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 = '' (mysql bugs user login password) 14. ok! ! After the script is modified, it will be stepped away, and below is officially installed bugzilla. 7 officially installed Bugzilla: 1. Open cmd.exe, enter the D: / bugzilla directory, type perl checksetup.pl, display a series of information, read carefully, it can reflect whether you configured to install bugzilla, good Luck !!! J 2. If everything goes well, the system prompts to create an information on the Administrator (user login name), RealName, login password and other information. Finally, if success, it will prompt "Reminder: Bugzilla Now Requires Version 8.7 or Later Of Sendmail!" 3. Open the browser, type http: // localhost / bugzilla to enter the Bugzilla login interface, enter the original Administrator user and password Note: The login name is an email address. 4. If you are lucky, you should see a very strange, very monotonous, even a bit rough page; then, I can congratulations, because you have entered the magic world of Bugzilla ... J 5. You can Test the email notification function: You can test in the registration and password loss section, you can experience the magic world brought by Bugzilla ... J 8 How to synchronize with the Bugzilla Development Team: When you look at the official, finally After running a large number of modified script code, didn't have a long time, the Bugzilla Development Team has released a 2.18 version, not only in a large number of bugs in 2.17, but also a lot of functions, it's itchy, downloaded. A latest version, I have encountered the same problem: to modify a large number of Perl scripts, it is a nightmare! L! Given this situation, I use the CVS system to handle, I am used to see the official reference! ! The premise is that you have built a set of CVSNT systems. If you have not yet, you can refer to the relevant documents written by I.

转载请注明原文地址:https://www.9cbs.com/read-117042.html

New Post(0)