linux 下 Testlink 安裝

一、   安裝 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

保存!再刷新頁面,已無提示!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章