Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

[MantisBT] installation and Construction on linux Environment

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

In the work, MantisBT is selected as the company's BTS tool. As a defect tracking management system, MantisBT has the following advantages:

Open source, free

Can be integrated with open source testlink to facilitate statistics of the use case discovery rate of bug

Has the function of bug association

Permission setting is flexible, and different roles have different permissions.

With email notification function, each user can only subscribe to relevant defect status email according to their own work characteristics.

Provide multi-dimensional, multi-form statistics

Software environment:

CentOS 6.5

MantisBT-1.2.18

Xampp-linux-x64-5.6.3

Note: xampp can quickly build LAMP environment and improve deployment efficiency.

1. Build xampp environment 1.1. Download the xampp installation package

[root@iserver1 tmp] #

Execute the command:

Wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.3/xampp-linux-x64-5.6.3-0-installer.run

Execution process:

Http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.3/xampp-linux-x64-5.6.3-0-installer.run

Resolving sourceforge.net... 216.34.181.60

Connecting to sourceforge.net | 216.34.181.60 |: 80. Connected.

.

Connecting to jaist.dl.sourceforge.net | 150.65.7.130 |: 80. Connected.

HTTP request sent, awaiting response... 200 OK

Length: 128831805 (123m) [application/x-makeself]

Saving to: "xampp-linux-x64-5.6.3-0-installer.run"

128831805 4.06M/s in 26s

2015-01-27 21:49:31 (4.71 MB/s)-"xampp-linux-x64-5.6.3-0-installer.run" saved [128831805ash 128831805]

1.2. Install xampp

[root@iserver1 tmp] #

Execute the command:

Chmod + x xampp-linux-x64-5.6.3-0-installer.run

. / xampp-linux-x64-5.6.3-0-installer.run

The process of executing or interacting, as in bold.

Welcome to the XAMPP Setup Wizard.

Select the components you want to install; clear the components you do not want

To install. Click Next when you are ready to continue.

XAMPP Core Files: y (Cannot be edited)

XAMPP Developer Files [Y/n]: y

Is the selection above correct? [Y/n]: y

Installation Directory

XAMPP will be installed to / opt/lampp

Press [Enter] to continue:

Setup is now ready to begin installing XAMPP on your computer.

Do you want to continue? [Y/n]: y

Please wait while Setup installs XAMPP on your computer.

Installing

0% _ 50% _ 100%

# #

Setup has finished installing XAMPP on your computer.

1.3. Configure xmapp security policy

[root@iserver1 htdocs] #

Execute the command:

/ opt/lampp/xampp security

Execute the content, the process of interaction, such as bold.

XAMPP: Quick security check...

XAMPP: Your XAMPP pages are NOT secured by a password.

XAMPP: Do you want to set a password? [yes] yes

XAMPP: Password: XXXXX

XAMPP: Password (again):

XAMPP: Password protection active. Please use 'xampp' as user name!

XAMPP: MySQL is accessable via network.

XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] y

XAMPP: Turned off.

XAMPP: MySQL has to run before I can check the security.

XAMPP: MySQL has to run before I can check the security.

XAMPP: MySQL has a root passwort set. Fine!:)

XAMPP: The FTP password for user 'daemon' is still set to' xampp'.

XAMPP: Do you want to change the password? [yes] yes

XAMPP: Password: XXXXX

XAMPP: Password (again):

XAMPP: Reload ProFTPD...not running.

XAMPP: Done.

At this point, the LAMP environment has been built.

1.4. Operation and maintenance xampp

1. To set xampp to boot automatically, execute the following command:

Ln-s / opt/lampp/lampp / etc/rc.d/rc3.d/S99lampp

Ln-s / opt/lampp/lampp / etc/rc.d/rc4.d/S99lampp

Ln-s / opt/lampp/lampp / etc/rc.d/rc5.d/S99lampp

two。 View xampp running status

[root@localhost ~] # / opt/lampp/lampp start # start lampp

[root@localhost ~] # / opt/lampp/lampp stop # stop lampp

[root@localhost htdocs] # / opt/lampp/lampp restart # restart lampp

[root@localhost ~] # / opt/lampp/lampp status # View status

two。 Install and deploy mantisbt2.1. Install mantisbt2.1.1. Download mantisbt

1. Cd / tmp

two。 Execute the command to get the installation package for mantisbt:

Wget http://sourceforge.net/projects/mantisbt/files/mantis-stable/1.2.18/mantisbt-1.2.18.tar.gz

3. Extract the mantisbt package and execute the command

Tar-zxvf mantisbt-1.2.18.tar.gz

2.1.2. Deploy mantisbt

1. Execute a command

Mv / tmp/mantisbt-1.2.18 / opt/lampp/htdocs/

2.1.3. Create a database for mantisbt

1. Visit http://serverIP/mantisbt/index.php, automatically jump to the http://serverIP/mantisbt/admin/install.php page, and set up the mantisbt database on this page

two。 On the following page, the password for root is "xx", just click "INSTALL/update database".

3. The database was created successfully. You can view the creation of the bugtracker database through http://serverIP/phpmyadmin/.

2.2. Configure mantisbt2.2.1. Configure database connection

1. [root@localhost mantisbt] #

Execute the following command:

Vi config_inc.php

Modify database connection information

2. [root@localhost mantisbt] #

Execute the following command:

Cp config_inc.php.sample config_inc.php

2.2.2. Mantisbt Sinicization

1. Execute the command:

Vi / opt/lampp/htdocs/mantisbt/config_defaults_inc.php

Modify: $g_default_language, change english to chinese_simplified

two。 In the profile, click: change your personal settings and select the interface language: chinese_simplified

3. The interface is updated to the Chinese version

2.2.3. Set time zone

1. Execute the command:

Vi / opt/lampp/htdocs/mantisbt/config_defaults_inc.php

Change to $g_default_timezone = 'Asia/Shanghai'

two。 In the profile, click: change personal settings, select time zone: shanghai

2.2.4. Configure mantis Mail

1. Execute a command

Vi / opt/lampp/htdocs/mantisbt/ config_inc.ini

Modify mail configuration information

#-Email Configuration-

$g_phpMailer_method = PHPMAILER_METHOD_SMTP; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL

$g_smtp_host = 'smtp.ym.163.com'; # used with PHPMAILER_METHOD_SMTP

$g_smtp_username = 'mantisbt.admin@xxx.com'; # used with PHPMAILER_METHOD_SMTP

$g_smtp_password = 'xxxx'; # used with PHPMAILER_METHOD_SMTP

$g_administrator_email = 'mantisbt.admin@xxx.com'

$g_webmaster_email = 'mantisbt.admin@xxx.com'

$g_from_email = 'mantisbt.admin@xxx.com'; # the "From:" field in emails

$g_return_path_email = 'mantisbt.admin@xxx.com'; # the return address for bounced mail

# $g_from_name = 'Mantis Bug Tracker'

# $g_email_receive_own = OFF

# $g_email_send_using_cronjob = OFF

Test new user registration and send email to administrator successfully.

At this point, the installation and deployment of MantisBT has been completed.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report