现在的位置: 首页 > 综合 > 正文

linux 下 Testlink 安装

2018年05月11日 ⁄ 综合 ⁄ 共 2836字 ⁄ 字号 评论关闭

一、   安装 mysql

yum install mysql , 见
Linux 安装 mysql5.5.19

二、   安装 apache

yum install htttpd , 见
linux Apache 安装
 

三、   安装 php

安装之前先升级一下 centos 系统自带的源里面的 php 版本(先升级源在执行 yum install php 不升级默认安装的是 php5.1.16 安装 testlink1.8.5 需要升级到 5.2.16)

以上默认安装就可以就这么简单你也可以下载软件、解压、编译、安装。 升级方法:见
Linux 安装 php-5.4.1

1)   vi /etc/yum.repos.d/nian.repo 新建一个任意的 .repo 的文件

写入内容: [utterramblings] name=Jason's Utter Ramblings Repo baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka (用 root 权限写)

2)   然后执行 yum -y update php,如果提示“thread.error: can’t start new thread”,

需要关 闭 fastestmirror。

位置:/etc/yum/pluginconf.d/fastestmirror.conf,将其中的 enable=1 改成 enable=0。

重新 执行 yum -y update php。

执行完成后,php -v 看看版本是不是已经最新了?

四、   整合 apache 与 php

1.   #vi etc/httpd/conf/httpd.conf 些模块简单的修改(默认安装地址是这样,如果是编译安 装的就找到相应地址修改就可以,如果找不到可以通过 rpm –ql php 查看安装路径) 在配置文件中添加如下: AddType application/x-httpd-php .php .php3 .php4 .php5

2.   查找:(设置 WEB 默认文件) DirectoryIndex index.html 替换为: DirectoryIndex index.php index.html

3.   找到这一段:

# AllowOverride controls what directives may be placed in .htaccess files.

# It can be "All", "None", or any combination of the keywords:

# Options FileInfo AuthConfig Limit

#

把 AllowOverride none 更改为 AllowOverride all 允许 apache rewrite4、启动 cgi#AddHandler cgi-script .cgi 去掉#打开 CGI 脚本服务 如果想同时运行扩展名为 .pl 则改为linux 下 Testlink 安装 AddHandler cgi-script .cgi .pl

4.   #/usr/local/httpd/bin/apachectl restart 重启一下 apahce 服务 apache 服务器的 PHP 配置完成。

5.   (到此在执行 yum install php 命令,下面如果无法出现安装页面可以卸载 php 命令是 rpm –e php 在完全所有安装 php 模块命令是 yum install php*)

五、   安装testlink前配置

1.   下载 testlink1.8.5

wget http://cdnetworks-kr-2.dl.sourceforge.net/project/testlink/TestLink%201.8/TestLink%20 1.8.5/testlink_1.8.5.tgz

2.   解压:tar –zxvf testlink1.8.5.tgz

3.   检查下解压的文件是不是只有 testlink 一个文件夹保证其不嵌套其他文件,

4.   mv testlink /var/www/html 移动 testlink 到 html 下,然后到 testlink 下设置访问权限:

cd /var/www/html/testlink

依次执行:

# chmod 777 gui/templates_c

# chmod 777 logs

# chmod 777 upload_area

六、   自动安装 testlink

1.   在浏览器中输入 http://<IP>/testlink/install/index.php

2.   点击 New installation

Checking PHP version: OK! (4.3.9 >= 4.1.0)

Checking if Register Globals = OFF: OK!

Checking if sessions are properly configured: OK!

Checking if ../gui/templates_c directory exists: OK!

Checking if ../gui/templates_c directory is writable: OK!

3.   如果 mysql 没有设置密码可以通过命令:

mysql> UPDATE user SET Password=PASSWORD('1111') WHERE user='root';

4.   下面是页面要输入的内容 Database login 为 root 密码为数据库密码其它为 testlink 的数据库登陆名和密码可以随便填写。

Database login: root

Database password: 1111

TestLink DB login: root

TestLink DB password: 1111

5.   请注意这句话 “After installation You will have the following login for TestLink Administrator. 告诉我们默认登录名和密码都是 admin login name: admin password : admin”

 

最后点击 Setup TestLink! 按钮完成部署

通过 http://IP/testlink 进行访问 用户名密码均为 admin

 

出现的问题

 

登录Testlink后,新建一个项目后,会出现如下提示:

There are security warnings for your consideration. See details on file: C:\xampp\htdocs\testlink\logs\config_check.txt. To disable any reference to these checkings, set $tlCfg->config_check_warning_mode = 'SILENT';

 

打开Testlink安装文件夹下的config.inc.php文件,将$tlCfg->config_check_warning_mode = 'FILE';中的FILE改为SILENT

保存!再刷新页面,已无提示!

抱歉!评论已关闭.