您的位置:首页 > 运维架构 > Linux

CentOS6.5安装testlink1.9.14

2015-12-25 12:06 555 查看
前提条件:准备一台CentOS6.5虚拟机,配置好IP,关闭iptables和selinux。

这里提供上我的云盘软件,可以去这里下载:http://pan.baidu.com/s/1qXymele

1. 首先安装Apache软件

首先在系统上面查询一下是否已经安装了apache 软件:rpm -qa|grep httpd

如果没有,使用yum安装:yum -y install httpd

chkconfig httpd on

service httpd start 启动软件
http://127.0.0.1/
2. 追加CentOS 6.5的epel及remi源

rpm -Uvh http:
//ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm




cd /var
mkdir testlink
cd testlink
mkdir logs
mkdir upload_area
修改这两个目录的权限 chmod 777 logs
chmod 777 upload_area
cd ..
chmod -R 777 testlink
重新启动apache服务:service httpd restart

安装testlink
http://127.0.0.1/testlink 进入testlink安装页面,点击new installation,

设置数据库账号密码(账号root,密码默认情况为空)

设置操作testlink数据库的账号和密码(账号为admin,密码为admin)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

安装过程中如果出现如下错误:

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', 'root');

define('DB_PASS', 'password');

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 plaincopyprint?

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

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


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: