安装TESTLINK的前提是PHP MYSQL APACHE(或者IIS)已安装配置完毕
把TESTLINK挂载在APACHE或者IIS上,然后在浏览器里访问便可以看到安装页面了,遵循页面内的提示即可完成安装
如果遇到什么问题,可以问我哦
不过不建议用XAMPP,手动一步步搭建服务器心里更有底
一、 安装testlink需要安装和配置的前提环境1. 安装mysql
安装mysql服务器yum install mysql mysql-server 知识
需要卸载可以使用命令yum remove mysql
启动/停止/重启mysql数据库服务器Service mysqld start/stop/restart 数据库命令所在文件/usr/bin 2. 安装apache
安装apache服务器yum install httpd
启动/停止/重启apache服务器Service httpd start/stop/restart 3. 安装php
安装php,yum install php
注意:不升级默认安装的是php5.1.16安装testlink1.8.5需要升级到5.2.16) 升级PHP版本的方法
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权限写)
执行yum -y update php 4. 安装php-mysql
为了php可以使用mysql数据库,必须安装php的mysql扩展包 Yum install php-mysql 5. 整合apache和php
#vi etc/httpd/conf/httpd.conf
在配置文件中添加如下:AddType application/x-httpd-php .php .php3 .php4 .php5 查找:(设置 WEB 默认文件)
DirectoryIndex index.html 替换为: DirectoryIndex index.php index.html
找到这一段:
# 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 安装testlink
二、 安装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. mv testlink /var/www/html 移动testlink到html下 4. 依次执行:
# chmod 777 gui/templates_c # chmod 777 logs
# chmod 777 upload_area 5. 自动安装
在浏览器中输入http://<yoursite>/testlink/install/index.php
点击New installation Mysql配置
1) 创建testlink数据库
CREATE DATABASE testlink CHARACTER SET utf8 COLLATE utf8_general_ci 2) 执行testlink建表sql
mysql -u <user>-p<password><dbname><<testlinkdir>/install/sql/ testlink_create_tables.sql 3) 向表里填充testlink数据
mysql -u <user>-p<password><dbname><<testlinkdir>/install/sql/ testlink_create_default_data.sql
4) 创建testlink连接mysql的配置文件,路径<testlinkdir>/config_db.inc.php
<?php // Automatically Generated by TestLink Installer define('DB_TYPE', 'mysql') define('DB_USER', 'testlinker') define('DB_PASS', 'testlink_pass') define('DB_HOST', 'localhost') define('DB_NAME', 'tl_master') ?>5) 由于创建数据库连接,安装testlink过程中要求数据库用户密码不能为空,所
以如果原始密码为空需要要执行sql语句
UPDATE user SET Password=PASSWORD('000000') WHERE user='root'
6. 常见问题
testlink服务的文件权限,导致自动安装时前台出现错误 数据库配置
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)