ubuntu下基于XAMPP的Testlink安裝部署

Testlink的安裝:

1.安裝包的準備

Tsetlink的官網(wǎng)下載1.9.16版本
XAMPP的官網(wǎng)下載XAMPP for Linux 5.6.28

2.XAMPP的安裝

chmod 777 xampp-linux-x64-5.6.28-0-installer.run #賦予權(quán)限
./xampp-linux-x64-5.6.28-0-installer.run

然后根據(jù)提示,依次輸入y,繼續(xù)安裝,安裝目錄在/opt/lampp下

3.啟動XAMPP

sudo  /opt/lampp/lampp start
這樣就是成功啟動了
這樣就是成功啟動了

這樣就是成功啟動了!

4.驗證是否安裝成功

在瀏覽器中輸入:http://localhost進行檢查,如果出現(xiàn)下面界面,則代表Xampp安裝成功

圖片標題
圖片標題

5.配置XAMPP

因為下面要設(shè)置4個密碼,所以我統(tǒng)一設(shè)置成了123456,方便記憶。

sudo /opt/lampp/lampp security  # 設(shè)置密碼 
XAMPP:Quick security check…  XAMPP: Your XAMPP pages are NOT secured by apassword.  XAMPP: Do you want to set a password? [yes] yes  XAMPP: Doyou want to set a password? [yes] yes  XAMPP: Password:  XAMPP:Password (again):  #第一個是設(shè)置xampp的密碼
 XAMPP:The mysql/phpMyAdmin user pma has no password set!!!  XAMPP: Do you wantto set a password? [yes] yes  XAMPP: Password:  XAMPP: Password(again):  XAMPP: Setting new MySQL pma password.  XAMPP: SettingphpMyAdmin’s pma password to the new one.#第二個是設(shè)置phpMyAdmin的密碼
XAMPP: MySQL has no root passwort set!!!  XAMPP: Do you wantto set a password? [yes] yes  XAMPP: Write the password somewhere down tomake sure you won’t forget it!!!  XAMPP: Password:  XAMPP: Password(again):  XAMPP: Setting new MySQL root password.  XAMPP:ChangephpMyAdmin’s authentication method.# 第三個是設(shè)置MySQL的root賬戶密碼 
XAMPP: TheFTP password for user ‘daemon’ is still set to ‘xampp’.  XAMPP: Do youwant to change the password? [yes] yes  XAMPP: Password:  XAMPP:Password (again):#第四個是設(shè)置ftp密碼

PS:此處設(shè)置的MySQL的root密碼,在testlink安裝設(shè)置中可用到。

配置php.ini

   vi /opt/lampp/etc/php.ini
    session.gc_maxlifetime = 2880 #session的保存時間為2880秒(48分鐘)
    vi /opt/lampp/etc/php.ini
    date.timezone=Asia/Shangha #時間修改

通過以上步驟,XAMPP基本的設(shè)置就搞定了,已經(jīng)達到可用的程度。

6.安裝Testlink

tar –zxvf testlink-1.9.16.tar.gz #解壓
sudo mv testlink-1.9.16 /opt/lampp/htdocs/testlink 移動至xampp目錄(/opt/lampp/htdocs下)

賦權(quán)限

# chmod 777 gui/templates_c
# chmod 777 logs
# chmod 777 upload_area

PS:這個三個賦值權(quán)限很重要,在之后的搭建 new installation 會用到

7.配置Testlink

打開config.inc.php,修改配置參數(shù).如下

$tlCfg->config_check_warning_mode = FILE';改成

$tlCfg->config_check_warning_mode='SILENT';

 $tlCfg->log_path= '/var/testlink/logs/'改成

$tlCfg->log_path='/opt/lampp/htdocs/testlink/logs/'

$g_repositoryPath = '/var/testlink/upload_area/';改成

$g_repositoryPath='/opt/lampp/htdocs/testlink/upload_area/'; $tlCfg->default_language = 'en_GB';改成
$tlCfg->default_language= ' zh_CN';
----------更改導入測試套件和測試用例文件大小----------
$tlCfg->import_file_max_size_bytes = 409600; 改成2M,即2097152
----------禁止新用戶注冊----------
$tlCfg->user_self_signup 的 true改為false,在登錄界面便取消了NewUser鏈接。

7.new installation

在瀏覽器中輸入 http://localhost/testlink點擊new installation

圖片標題

如果按照以上操作進行了 那么這個顯示全部都是 OK, 如果有failed!那么你需要重新配置 config.inc.php文件


圖片標題

之后就是設(shè)置登錄密碼 這個密碼是第五步的時候設(shè)置的


圖片標題
圖片標題

述參數(shù)配置好后,點擊頁面中【Process Tesklink Setup】按鈕
出現(xiàn)下面圖片 就說明配置成功了


圖片標題

點擊頁面下方的紅色字體鏈接:TestLink即可進入testlink登錄頁面
語言的更改 和 郵箱的設(shè)置
圖片標題
圖片標題

以上就部署基本上就完成了!


下面是我整理的一些 XAMPP 的命令操作

參數(shù)  描述
start   啟動 XAMPP。
stop    停止 XAMPP。
restart     重新啟動 XAMPP。
startapache     只啟動 Apache。
startssl    啟動 Apache 的 SSL 支持。該命令將持續(xù)激活 SSL 支持,例如:執(zhí)行該命令后,如果您關(guān)閉并重新啟動 XAMPP,SSL 仍將處于激活狀態(tài)。
startmysql  只啟動 MySQL 數(shù)據(jù)庫。
startftp    啟動 ProFTPD 服務(wù)器。通過 FTP,您可以上傳文件到您的網(wǎng)絡(luò)服務(wù)器中(用戶名“nobody”,密碼“l(fā)ampp”)。該命令將持續(xù)激活 ProFTPD,例如:執(zhí)行該命令后,如果您關(guān)閉并重新啟動 XAMPP,F(xiàn)TP 仍將處于激活狀態(tài)。
stopapache  停止 Apache。
stopssl     停止 Apache 的 SSL 支持。該命令將持續(xù)停止 SSL 支持,例如:執(zhí)行該命令后,如果您關(guān)閉并重新啟動 XAMPP,SSL 仍將處于停止狀態(tài)。
stopmysql   停止 MySQL 數(shù)據(jù)庫。
stopftp     停止 ProFTPD 服務(wù)器。該命令將持續(xù)停止 ProFTPD,例如:執(zhí)行該命令后,如果您關(guān)閉并重新啟動 XAMPP,F(xiàn)TP 仍將處于停止狀態(tài)。
security    啟動一個小型安全檢查程序。

卸載操作:

sudo /opt/lampp/uninstall 
sudo rm -rf /opt/lampp

我踩到的坑:
我是在第5步設(shè)置MYSQL密碼的時候把設(shè)置的密碼給忘記了,然后就導致 new installation 里 需要MYSQL密碼,結(jié)果 Process Tesklink Setup 一直不能成功。
總結(jié):如果是自己搭建,自己使用的話,密碼還是統(tǒng)一并且簡單點好。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容