Win2000 Bugzilla Installation Record (2)

zhaozj2021-02-08  201

6 Modify the Perl script file:

6.1 I have downloaded the concept of the modified package provided by myself:

1. Open the D: /Bugzilla/defParams.pl file, locate 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, mainly for E-mail notifications.

For example: POP3.263.NET

4. Replace the sender address of E-mail:

Find , replace the source address of your mailbox, the source address of the Bugzilla system mail.

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 installation path of MySQL:

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 who logins in the 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 Do not download my selection of the modified package provided:

1. Open all the .cgi files under d: / bugzilla, remove the last line T characters, 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 that G must write, otherwise Perl will report some files unable to locate; but there are several files very special, must be written into Require "globals.pl", it is strange, these files are: token.cgi Userprefs.cgi, token.pm, this question is not a reason, which is the reason for the reason, please tell me :)

3. Open the D: /Bugzilla/globals.pl file, add the following message sending code in front of the Use Bugzilla:

Sub sendmail

{

MY ($ msg, $ person) = @_;

Use 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 => DEFAULTLANGUAGUAGUE '

Modify Default => 'en' to default => 'CN'

5. Open the D: /Bugzilla/defParams.pl file, modify the default Bugzilla login page:

Find name => 'urlbase'

Modify DEFAULT => 'http: // ....' Change it according to your specific Bugzilla login page.

6. Open the D: / Bugzilla / DefParams.pl file, add the global parameter configuration item required for 3 mail notifications:

1 MailServer (mail send server address)

{

Name => 'MailServer',

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 ladengj'

}

7. Open the .cgi, .pl, .pm file for mail 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 the Open Sendmail:

Sendmail ($ msg, $ login); 2 Open D: /Bugzilla/token.pm, change the Open Sendmail:

Sendmail ($ Message, $ VARS -> {'EmailAddress'});

3 Open d: /bugzilla/whineatnews.pl and change Open Sendmail:

Sendmail ($ MSG, $ Substs {'email'});

4 Open d: /bugzilla/move.pl and change the Open Sendmail:

Sendmail ($ MSG, $ TO);

5 Open d: /bugzilla/importXML.PL, change Open Sendmail:

Sendmail ($ Header. $ Message. "/ N", $ to);

6 Open D: /Bugzilla/bugmail.pm, change Open Sendmail:

Sendmail ($ MSG, $ Person)

7 Open d: /bugzilla/flag.pm, change Open Sendmail to:

Sendmail ($ Message, $ FLAG -> {'Type'} -> {'cc_list'});

8 Open d: /bugzilla/globals.pl and change the Open Sendmail:

Sendmail ($ MSG, $ Name);

8. Open the D: /Bugzilla/checksetup.pl file, comment from the code related to the platform: [3967-3972, 4004-4008]

# $ Sig {hup} = / & bailout;

# $ Sig {int} = / & bailout;

# $ Sig {quit} = / & bailout;

# $ Sig {term} = / & bailout;

#System ("stty", "- echo"); # disable input echoing

9. Open the 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 the D: /Bugzilla/checksetup.pl file, modify the CVSNT installation path: (The installation of CVSNT needs to be modified)

Find my $ cvs_executable = `Which CVS`; => my $ cvs_executable =" d: //cvsnt//cvs.exe ";

11. Open the D: /Bugzilla/checksetup.pl file, modify the WebServerID information:

Find my $ WebServergid = getGRNAM ($ my_webservergroup) => my my $ webservergid = '8'

12. Open the D: /Bugzilla/checksetup.pl file, correct the Rouching line problem, which is due to the difference between UNIX and Windows platform: UNIX's Enter, and Windows is / r / n, so you need to remove it. A character.

Find Chomp $ login; add a line of cho $ login;

Locate Chomp $ RealName; Add a line of Chop $ RealName; find ChOMP $ Pass1; add a line of Chop $ Pass1;

Locate Chomp $ Pass2; add a line of Chop $ Pass2;

13. Open cmd.exe, enter 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 (generated 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, etc. Finally, if success, 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 previously established Administrator user and password, note: the login name is the 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 magical world of bugzilla ... J

5. You can test the mail notification function: You can test the registration and password loss section, you can experience the magic world brought by Bugzilla ... J

8 How to synchronize with the version of the Bugzilla Development Team:

When you look hard, I finally run a lot of modified script code. After 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 functional enhancements Less, see you itching, downloading a new version, encountered the same problem as before: Modify a large amount of Perl scripts, it is a nightmare! L!

In view of this, I use the CVS system to handle it for everyone to see! ! 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.

First, download the latest bugzilla-2.17.6 version from www.bugzilla.org, decompress, use WinCVS to use the Bugzilla code import to the CVS system, and establish Mozilla development branch and distribution tag, note: The main branch is yourself Branch, modify according to your own needs; Mozilla is a development side branch, which is used to synchronize update with Mozilla's Bugzilla Development Team. That is, when Bugzilla has a big improvement, you can download the release version, add this Mozilla Develop branches, then merge with the main branch, you can get the latest, and it is a modified bugzilla version. In this way, you can avoid a lot of modifications to each new version of Bugzilla source code. Haha, 'cool' is a word! ! Of course, in the merged process, conflicts may be encountered, but at least three of them are more likely to change the source code. Below is the branch name used by myself, for reference only:

Branch => mozilla (vendor tag)

Release => VER-2-17-6 (Release Tag)

(Until it, to be continued)

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

New Post(0)