Deployment of TestLink and RedMine connections in Ubuntu

Source: Internet
Author: User
There are also many articles on TestLink and RedMine connection and deployment on the Internet, but they are not detailed enough, including some articles from the group and the UK. Here, I will write a detailed article based on your article, for your exchange and learning. Before proceeding with this document, complete the following steps: 1. redMine has been deployed. Remarks: RedMine has been deployed on Ubuntu + Mys, and many articles about TestLink and RedMine connections and deployment have been written in detail, including some articles about group-British connections, write an article in detail based on your articles for your exchange and learning. Preparations

Before proceeding with this document, complete the following preliminary steps:

1.       RedMine deployment is complete;

Remarks: RedMine is deployed in the Ubuntu + Mysql environment.

Ubuntu Release: 10.04

Mysql version: 5.1.41-3ubuntu12

2.       TestLink installation is complete.

Note: the Release of TestLink must be 1.8.0 or later.

     The test system is deployed in the Apache + Mysql integrated environment. In the actual process of www.linuxidc.com, it can be changed according to specific requirements.

Deployment Overview

1.       Disable the Ubuntu firewall;

2.       Log on to the RedMine server and set up a Mysql remote connection account;

3.       Log on to the TestLink server and test the Mysql database remote connection in step 1;

4.       Log on to the TestLink server and set the configuration file;

Configuration files include:

?Custom_config.inc.php (under the root directory of TestLink)

?Redmine. cfg. php (under the cfg directory)

5.       Restart the Apache server and log on to TestLink to test the connectivity with RedMine.

Deployment steps: Ubuntu Firewall

1.       Because TestLink needs to connect to the RedMine database, log on to the Ubuntu system and open port 3306 of Mysql. You can disable the Ubuntu firewall in the LAN. The command to disable the firewall is as follows:

Sudo ufw disable

Set up a Mysql remote connection account

1.       Log on to the Ubuntu system (both RedMine and MySql are deployed under Ubuntu ).

2.       Log on to the MySql database.

Root @ redmine :~ # Mysql-u root-p

Enter password:

3.       Switch the database to the mysql database ).

Mysql> use mysql;

4.       Create a remote account.

Mysql> GRANT ALL PRIVILEGES ONNew_user. * TO remote @"%"Identified"New_user_password"

Note: new_user is the user name for remote logon, and new_user_password is the user password for remote logon. "%" Indicates the database that allows the host to remotely connect to the RedMine server.

The above information is set during the deployment process according to the actual situation. During the deployment process of this document, the remote login username of www.linuxidc.com is set to remote, and all hosts can connect to the database of the RedMine server.

5.       Mysql configuration file/etc/mysql/my. cnf.

Root @ redmine sudo vi/etc/mysql/my. cnf

In the old version, locate skip-networking and comment it out.
# Skip-networking

In the new version:
# Instead of skip-networking the default is now to listen only on
# Localhost which is more compatible and is not less secure.
Bind-address         = 127.0.0.1

Bind-address         = 127.0.0.1 this line should be commented out
# Bind-address         = 127.0.0.1

Or fill in the ip addresses that are allowed to access
# Bind-address     = 10.7.1.88

Restart MySQL
Root @ redmine sudo/etc/init. d/mysql restart
* Starting MySQL database server mysqld
  ... Done.
* Checking for login upt, not cleanly closed and upgrade needing tables.
Andy @ ubuntu :~ $ Sudo/etc/init. d/mysql start
* Starting MySQL database server mysqld
  ... Done.

Remote Login Account Verification

You can use either of the following methods to remotely log on to your account.

Method 1:

1.       Log on to the TestLink server and go to the bin directory of the MySql installation directory.

C: \ xampp \ mysql \ bin> mysql-h 10.7.1.88-u root-p

Enter password :*******

Welcome to the MySQL monitor.Commands end with; or \ g.

Your MySQL connection id is 377

Server version: 5.1.41-3ubuntu12 (Ubuntu)

 

Type 'help; 'or' \ H' for help. Type '\ C' to clear the buffer.

 

Mysql>

Mysql> MARK passed test.

Method 2:

Write the test. php page to test connectivity.

$ Link = mysql_connect ('10. 7.1.88 ', 'remote ','******');

If (! $ Link ){

Echo "fail ";

}

Else {

Echo "success ";

}

Mysql_close ();

?>

Note: '10. 7.1.88' is the IP address of the MySql database of the RedMine server, 'remote', and '******' is the remote Logon account and password.

Put test. php In the root directory of xampp and test it through http: // localhost/test. php. If it passes the test, success will appear.

NOTE: If 10061 is displayedThe error message indicates that the database cannot be connected.

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.