Cody Blog

http://blog.codylab.com

Install testlink on CentOS

In this post, I'll try to explain how to install Test link 1.9.3 on CentOS 6.2 step by step:

Using yum to install required packages

yum install mysql-server php php-mysql php-gd php-ldap

Modify /etc/php.ini to optimize php configuration for TestLink

session.gc_maxlifetime = 2400
max_execution_time = 120

Set up web server and mysql services

 chkconfig httpd on
 chkconfig mysqld on
 service httpd start
 service mysqld start

Set a password for mysql root user

 mysqladmin -u root password NEWPASSWORD

Add port 80 to iptables, Add the following rule into /etc/sysconfig/iptables

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

Restart Iptables:

 service iptables restart

Create a php file at /var/www/html to check if php works properly

 <?php phpinfo();>

Expected Screenshot img

Download TestLink 1.9.3

Website: http://sourceforge.net/projects/testlink/

 cd /var/www/html
 wget http://goo.gl/HLuhE
 tar zxvf testlink-1.9.3.tar.gz
 mv testlink-1.9.3 testlink
 chmod -R 755 testlink
 chmod -R 777 testlink/gui/templates_c
 chown -R apache:apache testlink

Go to TestLink webpage to setup first configuration : http://server_ip/testlink

1. Click "New Installation"
Screenshot : [http://screencast.com/t/ghllOE4alWj](http://screencast.com/t/ghllOE4alWj)
2. Click " I agree to the terms set out in this license."
3. There is checking report. To check if there is no fatal error.
Screenshot : [http://screencast.com/t/niazmypZ6](http://screencast.com/t/niazmypZ6) and click continue
4. Here, we use MySQL. Use the root password we created before. click "Process TestLink Setup"
5. Login to test link with admin/admin

There are some security warning need to be fixed

  • Change admin default password
  • Remove Install directory: rm -rf /var/www/html/testlink/install/
  • Modify email settings: cp custom_config.inc.php.example custom_config.inc.php

Uncomment the following four variables and modify them to your environment setting.

$g_smtp_host = '10.201.1.123'; # SMTP server MUST BE configured
$g_tl_admin_email = 'tl_admin@testlink'; # for problem/error notification
$g_from_email = 'testlink@testlink'; # email sender
$g_return_path_email = 'francisco@testlink';

Reference :

  1. TestLink - Installation & Configuration Manual : http://goo.gl/eFNUo
  2. Install TestLink : http://goo.gl/peKDv
  3. 在linux 下配置testlink : http://goo.gl/FnUFd
  4. 测试管理工具TestLink的使用(一)安装篇 : http://goo.gl/pOaNR

Related Posts

Comments