Testlink安装使用

Testlink安装记录:
Dennis 2012-3-19

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
系统/软件环境:
centos 5.5
php 5.2
apache 2.2.3
mysql   5.1.58

[cpp] view plain copy print ?
  1. [root@NanjingBaseServer www]# lsb_release -a  

  2. LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch  

  3. Distributor ID: CentOS  

  4. Description:    CentOS release 5.5 (Final)  

  5. Release:        5.5  

  6. Codename:       Final  

  7. [root@NanjingBaseServer www]# mysql --version  

  8. mysql  Ver 14.14 Distrib 5.1.58, for redhat-linux-gnu (i686) using readline 5.1  

  9. [root@NanjingBaseServer www]# php --version  

  10. PHP 5.2.17 (cli) (built: Aug 31 2011 17:06:47)  

  11. Copyright (c) 1997-2010 The PHP Group  

  12. Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies  

  13. [root@NanjingBaseServer www]# whereis apachectl  

  14. apachectl: /usr/sbin/apachectl /usr/share/man/man8/apachectl.8.gz  

  15. [root@NanjingBaseServer www]# /usr/sbin/apachectl -v  

  16. Server version: Apache/2.2.3  

  17. Server built:   Oct 20 2011 17:00:12  

  18. [root@NanjingBaseServer www]#  


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
下载:
http://sourceforge.net/projects/testlink/
安装:(在/var/www/中解压)
[cpp] view plain copy print ?
  1. [root@NanjingBaseServer www]tar zxvf testlink-1.9.3.tar.gz  

  2. [root@NanjingBaseServer www]mv testlink-1.9.3 testlink  


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
使用myql 创建操作testlink的账号和密码:
mysql 创建数据库testlink用户名密码
[cpp] view plain copy print ?
  1. mysql > grant select,insert,update,delete on testlink.* to testlink@localhost identified by "mypassword";  


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
网页安装:
http://192.168.1.28/testlink
设置数据库账号密码(账号root,密码默认情况为空)
设置操作testlink数据库的账号和密码(账号为testlink,密码为mypassword)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
安装错误:
TestLink setup will now attempt to setup the database:

Creating connection to Database Server:OK!

Connecting to database `testlink`:OK!
Creating Testlink DB user `testlink`:OK! (ok - user_exists ok - grant assignment)
Processing:sql/mysql/testlink_create_tables.sql
OK!
Writing configuration file:Failed!

TestLink couldn't write the config file. Please copy the following into the ../config_db.inc.php file:
<?php
// Automatically Generated by TestLink Installer
define('DB_TYPE', 'mysql');
define('DB_USER', 'testlink');
define('DB_PASS', 'mypassword');
define('DB_HOST', 'localhost');
define('DB_NAME', 'testlink');
define('DB_TABLE_PREFIX', '');
?>

Once that's been done, you can log into TestLink by pointing your browser at your TestLink site.

解决方式:
在testlink目录中创建config_db.inc.php文件,并拷贝php的代码即可
[cpp] view plain copy print ?
  1. [root@NanjingBaseServer testlink]$ vim config.inc.php  

  2. [root@NanjingBaseServer testlink]$ touch config_db.inc.php; vim config_db.inc.php  


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
登陆:
http://192.168.1.28/testlink
默认登陆账号密码都是admin

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
警告信息:
你需要注意一些安全警告. 查看详细信息在文件: /var/www/testlink/logs/config_check.txt.
要禁用警告输出,设置 $tlCfg->config_check_warning_mode = 'SILENT';
[cpp] view plain copy print ?
  1. [root@NanjingBaseServer testlink]# vim config.inc.php  

修改
$tlCfg->config_check_warning_mode = 'FILE';

$tlCfg->config_check_warning_mode = 'SILENT';

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
修改页面显示语言:
登陆后进入个人账号修改语言选择即可

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
配置SMTP:
[cpp] view plain copy print ?
  1. [root@NanjingBaseServer testlink]# vim config.inc.php  

[php] view plain copy print ?
  1. // ----------------------------------------------------------------------------

  2. /* [SMTP] */

  3. /**

  4. * @var string SMTP server name or IP address ("localhost" should work in the most cases)

  5. * Configure using custom_config.inc.php

  6. * @uses lib/functions/email_api.php

  7. */

  8. $g_smtp_host        = 'mytest.com.cn';  # SMTP server MUST BE configured  

  9. # Configure using custom_config.inc.php  

  10. $g_tl_admin_email     = '[email protected]'; # for problem/error notification  

  11. $g_from_email         = '[email protected]';  # email sender  

  12. $g_return_path_email  = '[email protected]';  

  13. /**

  14. * Email notification priority (low by default)

  15. * Urgent = 1, Not Urgent = 5, Disable = 0

  16. **/

  17. $g_mail_priority = 5;  

  18. /**

  19. * Taken from mantis for phpmailer config

  20. * select the method to mail by:

  21. * PHPMAILER_METHOD_MAIL - mail()

  22. * PHPMAILER_METHOD_SENDMAIL - sendmail

  23. * PHPMAILER_METHOD_SMTP - SMTP

  24. */

  25. $g_phpMailer_method = PHPMAILER_METHOD_SMTP;  

  26. /** Configure only if SMTP server requires authentication */

  27. $g_smtp_username    = '[email protected]';  # user  

  28. $g_smtp_password    = 'testlink_psw';  # password  


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
删除用户:
网页无法删除账号
进入mysql删除:
[cpp] view plain copy print ?
  1. [root@NanjingBaseServer testlink]# mysql  

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

  3. Your MySQL connection id is 106  

  4. Server version: 5.1.58 MySQL Community Server (GPL) by Utter Ramblings  

  5. Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.  

  6. This software comes with ABSOLUTELY NO WARRANTY. This is free software,  

  7. and you are welcome to modify and redistribute it under the GPL v2 license  

  8. Type 'help;' or '\h'for help. Type '\c' to clear the current input statement.  

  9. mysql> show databases;  

  10. +--------------------+  

  11. | Database           |  

  12. +--------------------+  

  13. | information_schema |  

  14. | mantisbt           |  

  15. | mysql              |  

  16. | test               |  

  17. | testlink           |  

  18. +--------------------+  

  19. 5 rows in set (0.03 sec)  

  20. mysql> use testlink;  

  21. Reading table information for completion of table and column names  

  22. You can turn off this feature to get a quicker startup with -A  

  23. Database changed  

  24. mysql> select * from users;  

  25. +----+---------+----------------------------------+---------+  

  26. | id | login   | password                         | role_id |  

  27. +----+---------+----------------------------------+---------+  

  28. |  1 | admin   | 21232f297a57a5a743894a0e4a801fc3 |       8 |  

  29. |  2 | test123 | e10adc3949ba59abbe56e057f20f883e |       5 |  

  30. +----+---------+----------------------------------+---------+  

  31. 4 rows in set (0.00 sec)  

  32. mysql> delete from users where login='test123';  

  33. Query OK, 1 row affected (0.00 sec)  

  34. mysql> select * from users;  

  35. +----+-------+----------------------------------+---------+  

  36. | id | login | password                         | role_id |  

  37. +----+-------+----------------------------------+---------+  

  38. |  1 | admin | 21232f297a57a5a743894a0e4a801fc3 |       8 |  

  39. +----+-------+----------------------------------+---------+  

  40. 1 row in set (0.00 sec)  

  41. mysql>  


你可能感兴趣的:(Testlink安装使用)