Linux下基于xampp的TestLink的安装部署(1)

xiaoxiao2021-02-28  39

   1、xampp   xampp下载地址:www.apachefriends.org 或http://www.xampp.cc/archives/62,下载后的文件是以.run后缀的文件,分32位和64位。    1)赋权限   chmod +x xampp-linux-1.8.3-5-installer.run    2)安装   ./xampp-linux-1.8.3-5-installer.run   然后根据提示,依次输入y,继续安装,安装到目录/opt/lampp下。    3)启动xampp   # /opt/lampp/lampp start    4)停止xampp   # /opt/lampp/lampp stop    5)卸载xampp   # /opt/lampp/lampp stop   # rm -rf /opt/lampp    6)验证是否安装成功   在 浏览器中输入:http://localhost进行检查,如果出现下面界面,则代表Xampp安装成功。    7)安装设置   在默认的安装过程中,xampp所有均是没有密码的,为了安全,我们应该为xampp设置密码。该如何操作呢?   # /opt/lampp/lampp security   设置xampp的密码:  XAMPP:Quick security check…  XAMPP: Your XAMPP pages are NOT secured by apassword.  XAMPP: Do you want to set a password? [yes] yew  XAMPP: Doyou want to set a password? [yes] yes  XAMPP: Password:  XAMPP:Password (again):   用户名默认是:xampp   设置phpMyAdmin的密码:  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.   设置mysql的root账户:  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.   设置ftp密码:  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):   PS:此处设置的MySQL的root密码,在testlink安装设置中可用到。   如果跳过设置MySQL密码,可以重启xampp之后,再次尝试    8)让局域网均可访问   关闭防火墙:service iptales stop   xampp的配置文件:/opt/lampp/etc/extra/httpd-xampp.conf中将一下内容屏蔽   <LocationMatch"^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">   #Requirelocal   ErrorDocument 403/error/XAMPP_FORBIDDEN.html.var   通过以上步骤,基本的设置就搞定了,已经达到可用的程度。    2、testlink    1)解压   tar –zxvf testlink-1.9.14.tar.gz    2)移动至xampp目录(/opt/lampp/htdocs下)   mv testlink-1.9.14 /opt/lampp/htdocs/testlink    3)赋权限   依次执行:   # chmod 777 gui/templates_c   # chmod 777 logs   # chmod 777 upload_area    4)配置   1.testlink需要配置的地方不多,此处简单介绍几个配置点。打开config_inc.php,修改配置参数.如下:   将$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/'  【注意:testlink1.9。9版本有此项设置,其他版本 是:$tlCfg->log_path= TL_ABS_PATH . 'logs' . DIRECTORY_SEPARATOR ;不用修改】   将$g_repositoryPath = '/var/testlink/upload_area/';改成   $g_repositoryPath='/opt/lampp/htdocs/testlink/upload_area/';    【注意:testlink1.9。9版本有此项设置,其 他版本是:$g_repositoryPath= TL_ABS_PATH . "upload_area" .DIRECTORY_SEPARATOR;】   将$tlCfg->default_language = 'en_GB';改成   $tlCfg->default_language= ' zh_CN';
转载请注明原文地址: https://www.6miu.com/read-2622616.html

最新回复(0)