Run Mantis Test Management Software on linux (ubuntu)

Source: Internet
Author: User
Let Mantis test management software run on linux (ubuntu)-Linux Enterprise Application-Linux server application information. The following is a detailed description. Similarly, because the company wants to conduct test management, I provide Mantis and TestLink for comparison, so that the company has the opportunity to choose.

Although Mantis is an open-source software, I seldom see the Installation Introduction on linux. So I want to write down some snacks for the future.

Install the LAMP environment again. To provide a complete process, I will repeat the LAMP installation process.

Mantis installation environment ubuntu 6.06

1. Install php5 apache2 mysql-server5.0

Code:
Sudo apt-get install apache2 libapache2-mod-security libapache2-mod-php5 php5 mysql-server php5-mysql php5-gd phpmyadmin

If the installation fails, click "mark to delete permanently" in the new version, and check the installation again to restore the initial configuration (critical ).

The default home directory is/var/www/. Decompress Mantis in it. Of course, the entire directory can be chmod 777 Mantis-R.

You have to configure Mysql in the terminal and set a password, because there is no password by default.
$ Mysql-u root // This command logs in as Root. If you have a password, use mysql-u root-p.
Mysql> grant all privileges on *. * TO root @ localhost identified by "123456 ";

This command: grant all privileges on xoops. * TO tualatrix @ "%" identified by "654321"; // This command is used TO create a new Mysql account

A bad database error is reported during installation.

2. Configure php5

Sudo gedit/etc/php5/apache2/php. ini

Modify the maximum memory usage allowed.

Memory_limit = 8 M

Change

Memory_limit = 32 M


Modify the maximum size allowed for upload and search

Upload_max_filesize = 2 M

Change

Upload_max_filesize = 8 M

Allow the mysql and gd modules to check whether the file finally contains the following code, if not added. (It is added at the end of the configuration file by default. Check it just in case)

Extension = mysql. so
Extension = gd. so

Save and close the file.

3. Configure mysql to support access from other clients. You do not need to modify it if you do not need it.

Sudo gedit/etc/mysql/my. cnf

Search for files

Skip-networking

Change

# Skip-networking

Save and close the file.

Restart mysql

Sudo/etc/init. d/mysql restart

Sudo/etc/init. d/apache2 restart is not normal if restart is not repeated (the fault is found from Mantis)

The main configuration is the php5 two. so.

The bad database error is solved.

3. Install Mantis as follows.

When Mantis is installed, database bugtracker isn' created is reported.

So you can


1. Open the command line window and enter: mysql? Uroot? Proot (Note: if you change the password of the root account to root when installing MySQL ),


2. Create a database. Mysql> create database testlink;


3. Use the newly created testlink database. Mysql> use testlink;


Now you can install

4. Email server

Now you have registered a new user, and the password is a problem. Because the new user's password is confirmed by email. For Intranet users, note that the link address in the email is an intranet address.

Apt-get install sendmail to install an email proxy.

Vi config_inc.php

$ G_hostname = 'localhost ';
$ G_db_type = 'mysql ';
$ G_database_name = 'buckettracker ';
$ G_db_username = 'root ';
$ G_db_password = 'root'; // automatically created
$ G_smtp_host = 'mail .henrich-inc.com.cn ';
$ G_smtp_username = 'cunguanzh ';
$ G_smtp_password = '000000 ';
$ G_return_path_email = 'cunguanzh @ XXXXX.com '; // note that the server will reject the email because it is different from the above, because the default admin@example.com
$ G_use_phpMailer = ON; // use phpMailer to send an email.
$ G_phpMailer_path = './core/phpmailer /';
$ G_phpMailer_method = 2; // use sendmail

Vi/etc/php5/apache2/php. ini

Search for smtp
; For Unix only. You may supply arguments as well (default: "sendmail-t-I ").
Sendmail_path =/usr/sbin/sendmail-t-f cunguanzh@XXXXX.com

Then restart apache2

Now you can test your Mantis.

Here is another problem: chmod 777 phpmyadmin-R will encounter a Wrong permissions on configuration file, shocould not be world writable. At this time, you should chmod 755 phpmyadmin-R, huh, write Permission issues.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.