CentOS下安装XAMPPTestLink199和MantisBT1217.docx

上传人:b****6 文档编号:12140856 上传时间:2023-06-04 格式:DOCX 页数:12 大小:19.55KB
下载 相关 举报
CentOS下安装XAMPPTestLink199和MantisBT1217.docx_第1页
第1页 / 共12页
CentOS下安装XAMPPTestLink199和MantisBT1217.docx_第2页
第2页 / 共12页
CentOS下安装XAMPPTestLink199和MantisBT1217.docx_第3页
第3页 / 共12页
CentOS下安装XAMPPTestLink199和MantisBT1217.docx_第4页
第4页 / 共12页
CentOS下安装XAMPPTestLink199和MantisBT1217.docx_第5页
第5页 / 共12页
CentOS下安装XAMPPTestLink199和MantisBT1217.docx_第6页
第6页 / 共12页
CentOS下安装XAMPPTestLink199和MantisBT1217.docx_第7页
第7页 / 共12页
CentOS下安装XAMPPTestLink199和MantisBT1217.docx_第8页
第8页 / 共12页
CentOS下安装XAMPPTestLink199和MantisBT1217.docx_第9页
第9页 / 共12页
CentOS下安装XAMPPTestLink199和MantisBT1217.docx_第10页
第10页 / 共12页
CentOS下安装XAMPPTestLink199和MantisBT1217.docx_第11页
第11页 / 共12页
CentOS下安装XAMPPTestLink199和MantisBT1217.docx_第12页
第12页 / 共12页
亲,该文档总共12页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

CentOS下安装XAMPPTestLink199和MantisBT1217.docx

《CentOS下安装XAMPPTestLink199和MantisBT1217.docx》由会员分享,可在线阅读,更多相关《CentOS下安装XAMPPTestLink199和MantisBT1217.docx(12页珍藏版)》请在冰点文库上搜索。

CentOS下安装XAMPPTestLink199和MantisBT1217.docx

CentOS下安装XAMPPTestLink199和MantisBT1217

centos下安装xampp、testlink和mantis

一、上传需要安装的安装包:

删除不需要的安装包:

[root@localhostlocalhost]#rm-rfxampp-linux-x64-1.8.2-4-installer.run 

二、安装xampp:

[root@localhostlocalhost]#./xampp-linux-1.8.2-5-installer.run

----------------------------------------------------------------------------

WelcometotheXAMPPSetupWizard.

----------------------------------------------------------------------------

Selectthecomponentsyouwanttoinstall;clearthecomponentsyoudonotwant

toinstall.ClickNextwhenyouarereadytocontinue.

XAMPPCoreFiles:

Y(Cannotbeedited)

XAMPPDeveloperFiles[Y/n]:

y

Istheselectionabovecorrect?

[Y/n]:

y

----------------------------------------------------------------------------

InstallationDirectory

XAMPPwillbeinstalledto/opt/lampp

Press[Enter]tocontinue:

----------------------------------------------------------------------------

SetupisnowreadytobegininstallingXAMPPonyourcomputer.

Doyouwanttocontinue?

[Y/n]:

y

PleasewaitwhileSetupinstallsXAMPPonyourcomputer.

 Installing

 0%______________50%______________100%

 #########################################

----------------------------------------------------------------------------

SetuphasfinishedinstallingXAMPPonyourcomputer.

三、 linux下设置lampp自启动 

lampp在linux下是不会自动启动的。

需要手工处理。

如下:

假如,你的lampp安装在 /opt/lampp 目录下,那么可以如下处理:

将xampp开机自启动设置

centos下:

1.首先检查默认启动文件在那个文件下:

[root@localhost~]#egrep:

initdefault:

/etc/inittab

id:

5:

initdefault:

[root@localhost~]#cd/etc/rc.d/rc5.d

2、执行命令

ln-s/opt/lampp/lamppS99lampp软链接到lampp的启动项

ln-s/opt/lampp/lamppK01lampp关机时,关闭lampp

3. 重启,看下lampp是否已自动启动

设计局域网内机器可以访问xampp

[root@localhostlampp]#find-namehttpd-xampp.conf

./etc/extra/httpd-xampp.conf

[root@localhostlampp]#cdetc/extra/

[root@localhostextra]#pwd

/opt/lampp/etc/extra

[root@localhostextra]#vihttpd-xampp.conf 

----------------------------------------------

#Require local

----------------------------------------------

[root@TestManager extra]# /opt/lampp/lampp restart

局域网机器就可以访问xampp

设置xampp安全

[root@localhostextra]#/opt/lampp/xamppsecurity

XAMPP:

Quicksecuritycheck...

XAMPP:

YourXAMPPpagesareNOTsecuredbyapassword.

XAMPP:

Doyouwanttosetapassword?

[yes]y

XAMPP:

Password:

XAMPP:

Password(again):

XAMPP:

Passwordprotectionactive.Pleaseuse'xampp'asusername!

XAMPP:

MySQLisaccessablevianetwork.

XAMPP:

Normalythat'snotrecommended.Doyouwantmetoturnitoff?

[yes]y

XAMPP:

Turnedoff.

XAMPP:

StoppingMySQL...ok.

XAMPP:

StartingMySQL...ok.

XAMPP:

TheMySQL/phpMyAdminuserpmahasnopasswordset!

!

!

XAMPP:

Doyouwanttosetapassword?

[yes]y

XAMPP:

Password:

XAMPP:

Password(again):

XAMPP:

SettingnewMySQLpmapassword.

XAMPP:

SettingphpMyAdmin'spmapasswordtothenewone.

XAMPP:

MySQLhasnorootpasswortset!

!

!

XAMPP:

Doyouwanttosetapassword?

[yes]y

XAMPP:

Writethepasswordsomewheredowntomakesureyouwon'tforgetit!

!

!

XAMPP:

Password:

XAMPP:

Password(again):

XAMPP:

SettingnewMySQLrootpassword.

XAMPP:

ChangephpMyAdmin'sauthenticationmethod.

XAMPP:

TheFTPpasswordforuser'daemon'isstillsetto'xampp'.

XAMPP:

Doyouwanttochangethepassword?

[yes]y

XAMPP:

Password:

XAMPP:

Password(again):

XAMPP:

ReloadProFTPD...notrunning.

XAMPP:

Done.

查看xampp运行状态

启动lampp:

[root@localhost~]#/opt/lampp/lamppstart

停止lampp:

[root@localhost~]#/opt/lampp/lamppstop

重启lampp:

[root@localhosthtdocs]#/opt/lampp/lampprestart

查看lampp状态:

[root@localhost~]#/opt/lampp/lamppstatus

四、安装testlink

找到xampp的发布路径:

[root@localhostxampp]#cd/opt/lampp/htdocs

http:

//192.168.80.141/xampp/index.php

[root@localhosthtdocs]#pwd

/opt/lampp/htdocs

解压testlink

[root@localhostlocalhost]#tar-zxvftestlink-1.9.9.tar.gz

解压文件到当前路径

[root@localhostlocalhost]#mvtestlink-1.9.9/opt/lampp/htdocs/testlink

移动文件到指定路径

以上两步可以合并成如下一步:

[root@localhostlocalhost]#tar-zxvftestlink-1.9.9.tar.gz -C/opt/localhost/htdocs/testlink

解压文件到指定路径

修改testlink的配置文件权限

[root@localhosthtdocs]#cdtestlink

[root@localhosttestlink]#ls

BUYING_SUPPORT.TXTdocsLICENSElostPassword.php

cfgerror.phplinkto.phpREADME

CHANGELOGfirstLogin.phplnl.phpthird_party

CODE_REUSEguilocaleupload_area

config.inc.phpindex.phplogin.php

custominstalllogout.php

custom_config.inc.php.exampleliblogs

[root@localhosttestlink]#chmod777gui/templates_c

[root@localhosttestlink]#chmod777logs

[root@localhosttestlink]#chmod777upload_area

安装testlink

在浏览器内输入:

http:

//192.168.80.141/testlink/install/index.php

如果报Checking if/var/testlink/logs/ directory exists [S]     Failed!

        Checking if/var/testlink/upload_area/ directory exists [S]   Failed!

  修改C:

\Program Files\xampp\htdocs\testlink\ config.inc.php文件:

//$tlCfg->log_path = '/var/testlink/logs/'; /* unix example  注释掉该句,

添加如下内容

$tlCfg->log_path = 'testlinkDir/logs/';

注意:

testlinkDir表示安装目录路径

此处修改为:

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

$g_repositoryPath='/opt/lampp/htdocs/testlink/upload_area/';

Writingconfigurationfile:

Failed!

TestLinkcouldn'twritetheconfigfile.Pleasecopythefollowingintothe../config_db.inc.phpfile:

php

//AutomaticallyGeneratedbyTestLinkInstaller-Mon,14Apr1406:

08:

53+0200

define('DB_TYPE','mysql');

define('DB_USER','root');

define('DB_PASS','111111');

define('DB_HOST','localhost');

define('DB_NAME','testlink');

define('DB_TABLE_PREFIX','');

Oncethat'sbeendone,youcanlogintoTestLinkbypointingyourbrowseratyourTestLinksite.

   

[root@localhosttestlink]#touchconfig_db.inc.php创建文件

粘贴到:

config_db.inc.php

修改新增的文件的权限:

[root@localhosttestlink]#chmod777config_db.inc.php

登录testlink

http:

//192.168.80.141/testlink/login.php

默认用户名、密码:

admin

汉化testlink系统

//$tlCfg->default_language='en_GB';

$tlCfg->default_language='zh_CN'; 

个人设置汉化的步骤:

登录Testlink后,点击MySettings,选择ChineseSimplified即可使用文中

设置安全告警

你需要注意一些安全警告.查看详细信息在文件:

/opt/lampp/htdocs/testlink/logs/config_check.txt.

 要禁用警告输出,设置$tlCfg->config_check_warning_mode='SILENT';

打开Testlink安装文件夹下的config.inc.php文件,将$tlCfg->config_check_warning_mode = 'FILE';中的FILE改为SILENT 保存!

再刷新页面,已无提示!

安装完成提示如下信息:

YOURATTENTIONPLEASE:

TohaveafullyfunctionalinstallationYouneedtoconfiguremailserversettings,followingthissteps

  copyfromconfig.inc.php,[SMTP]Sectionintocustom_config.inc.php.

  completecorrectdataregardingemailaddressesandmailserver.

Installationwassuccessful!

拷贝config.inc.php.sample到config.inc.php,在config.inc.php中配置testlink的邮件

$g_smtp_host='';

$g_tl_admin_email='jianjunw1980@';

$g_return_path_email='jianjunw1980@';

$g_from_email='jianjunw1980@';

$g_smtp_username='jianjunw1980@';#user

$g_smtp_password='18014360';#password

define("SMTP_SEND",2);

$g_phpMailer_method='SMTP_SEND';

测试用户密码重置,邮件测试成功

五、安装mantis

解压mantisbt并移动到xampp的发布目录下

[root@localhostlocalhost]#unzipmantisbt-1.2.17.zip

[root@localhostlocalhost]#mvmantisbt-1.2.17/opt/lampp/htdocs/mantisbt

修改mantisbt访问权限

[root@localhosthtdocs]#chmod755mantisbt/

创建数据库:

bugtracker

访问链接

http:

//192.168.80.141/mantisbt/admin/index.php/

修改[root@localhostmantisbt]#viconfig_inc.php.sample 

php

$g_hostname='localhost';

$g_db_type='mysql';

$g_database_name='bugtracker';

$g_db_username='root';

$g_db_password='111111';

?

>

把config_inc.php.sample中的信息复制到config_inc.php

[root@localhostmantisbt]#cpconfig_inc.php.sampleconfig_inc.php

需要把以下的表和语句手动更新到数据库,更新前修改

languageVARCHAR(32)NOTNULLDEFAULT'english',

languageVARCHAR(32)NOTNULLDEFAULT'chinese_simplified',

[root@localhostbin]#/opt/lampp/bin/mysql-uroot-p

Enterpassword:

 

showdatabases;

use bugtracker;

exit

登录mantisbt

http:

//192.168.80.141/mantisbt/login_page.php

账号:

administrator

密码:

root

    Mantis的设置是这样保存的:

在config_defaults_inc.php中保存这Mantis的默认设置,用户自己的设置信息保存在config_inc.php中,如果某个选项在config_inc.php中有设置,则系统使用config_inc.php中的设置,否则使用config_defaults_inc.php的系统默认设置;config_inc.php.sample则是Mantis给出的一个用户设置文件例子。

      所以我们需要修改config_inc.php文件中的设置,设置很简单,各个参数的意义可以参见config_defaults_inc.php,这里对每个参数都有详细的解释,虽然是E文,不过应该都能看懂;Sample中给出的一些设置是一定需要修改的,比如MySQL数据库的连接参数,管理员的邮箱的;其他的要根据你的实际情况进行修改。

进行汉化

[root@localhostmantisbt]#viconfig_defaults_inc.php 

修改:

$g_default_language,将english  改为chinese_simplified

在个人资料内,点击:

更改个人设置,选择界面语言:

chinese_simplified

mantis系统显示的时间不对问题

#设置时区

 $g_default_timezone='Asia/Shanghai';

在个人资料内,点击:

更改个人设置,选择时区:

shanghai

#设置日期格式

 $g_complete_date_format='Y-m-dH:

i:

s';

单引号内的字母分别代表:

年-月-日时-分-秒,可以根据自己的习惯修改格式。

删掉或者把admin文件重命名

[root@localhostmantisbt]#cd/opt/lampp/htdocs/mantisbt/

[root@localhostmantisbt]#mvadminadmins

mantisbt-1.2.17导出CSV乱码解决方法 

本文参考

上面的说的一些修改代码的地方在Mantis1.2.17中多数找不到。

这里结合前人的方法,根据1.2.17的特点进行解决,方法如下:

Step1注释的是原代码,注释下面的代码是需要新加的、一共修改两处第一处大概在101行、第二处大概在123行;

#echo$t_header;Line101

echoexpChangeCode($t_header);

echoexpChangeCode($t_value);

#echo$t_function($t_row);line123

echoexpChangeCode($t_function($t_row));

Step2同参考文章,方法加载代码最后面即可。

修改csv_export.php

添加函数

functionexpChangeCode($str)

{

    $str=mb_convert_encoding($str,"CP936","UTF-8");

    return$str;

}

配置统计报表

一、解决mantis报表插件找不到系统字符集路径的问题

1、tar-zxvfjpgraph-3.0.7.tar.gz#解压

2、安装字符集到/usr/share/fonts/truetype/

3、修改字符集权限chmod777/usr/share/fonts/truetype/*

4、修改[root@localhostmantisbt]#viconfig_defaults_inc.php配置

    $g_system_font_folder=' /usr/share/fonts/truetype/';

二、选择配置插件mantis图表1.0选择JpGraph,提示如下错误信息

SYSTEMWARNING:

'require_once(jpgraph/jpgraph.php):

failedtoopenstream:

Nosuchfileordirectory'in'/opt/lampp/htdocs/mantisbt/plugins/MantisGraph/core/graph_api.php'line42

Fatalerror:

require_once():

Failedopeningrequired'jpgra

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 职业教育 > 其它

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2