Centos6.7 Testlink1.9.3搭建

一、yum安装相关软件

Yum–y install mysql-server mysql php php-mysql php-devel php-ldap php-gd

二、准备安装

1、解压testlink包,复制到var/www/html/并命名为testlink

[root@ip-10-21-168-116 opt]# ll

drwxr-xr-x  4 root   root       4096 Apr 13 18:03 agent

drwxr-xr-x  2 root   root       4096 May 31  2016 aws

drwxrwxrwx 12 centos centos     4096 Jul  2  2011 testlink-1.9.3

-rw-r--r--  1 root   root   22706719 Apr 17 16:18 testlink-1.9.3.tar.gz

 [root@localhost testlink]# cp –rp testlink-1.9.3 /var/www/html/testlink

2、对teslink目录下的文件进行授权(否则配置的时候会报错)

cd /var/www/html/testlink

chmod 777 logs upload_area/

cd gui

chmod 777 templates_c

3、对httpd.conf文件修改

vi /etc/httpd/conf/httpd.conf

AddType application/x-httpd-php .php .htm .html 添加这一行,源文件没有

DirectoryIndex index.html index.php index.html.var添加index.php:

Listen 10.**.***.116:8080 添加testlink服务器地址和监听端口

添加虚拟主机

# ServerAdmin [email protected]

DocumentRoot /var/www/html/testlink // 实际testlink目录

ServerName www.testlink.com//改成实际域名地址,没有的话,只能通过IP访问(目前此方法无用)

# ErrorLog logs/dummy-host.example.com-error_log

# CustomLog logs/dummy-host.example.com-access_log common

三、开始安装

1、在浏览器中输入testlink安装地址:(install的路径在/opt/tmp/install/index.php)

http://127.0.0.1:7000/install(地址自己定义)


点击process teatlink setup

服务启动:service httpd start

停止服务:service httpd stop

你可能感兴趣的:(Centos6.7 Testlink1.9.3搭建)