testlink mysql linux_Linux下搭建Testlink1.9.17
软件准备
需要搭建LAMP环境,下载testlink安装包:
搭建LAMP所需的集成包 xampp-linux-x64-7.2.11-0-installer.run 下载地址
testlink-1.9.17.tar.gz 下载地址
安装XAMPP
1.检查系统中是否有LAMP,分别检查这四个包,如果有则一个个删除
2.安装XAMMP,下载后以root身份进入所在目录:
#chmod 755 xampp-linux-x64-7.2.11-0-installer.run
#./xampp-linux-x64-7.2.11-0-installer.run
执行安装就可以了
配置XAMPP
开启XAMPP服务设置密码
#/opt/lampp/lampp start
默认安装的是开发模式,此条命令可以进入设置MySQL、Apache、PHP的用户名、密码
XAMPP: Quick security check... XAMPP: Your XAMPP pages are NOT secured by a password. XAMPP: Do you want to set a password? [yes] yes XAMPP: Password:
XAMPP: Password (again):
XAMPP: Password protection active. Please use 'lampp' as user name! XAMPP: mysql is accessable via network. XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] yes XAMPP: Turned off.
XAMPP: Stopping MySQL...
XAMPP: Starting MySQL...
XAMPP: The MySQL
phpMyAdmin user pma has no password set!!! XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL pma password.
XAMPP: Setting phpMyAdmin's pma password to the new one.
XAMPP: MySQL has no root passwort set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Write the password somewhere down to make sure you won't forget it!!!
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL root password.
XAMPP: Change phpMyAdmin's authentication method.
XAMPP: The FTP password for user 'nobody' is still set to 'lampp'.
XAMPP: Do you want to change the password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Reload ProFTPD...
XAMPP: Done.
配置php.ini文件
#vim /opt/lampp/etc/php.ini
延长session时间
session.gc_maxlifetime = 2880
修改参数
max_execution_time = 120
将内存由8M改为64M
memory_limit = 64M
关闭防火墙服务
#systemctl stop firewalld.service
永久关闭
#chkconfig --level 35 iptables off
安装Testlink
1.将下载的包解压到/lampp/htdocs/下 (tar -zxvf testlink-1.9.17.tar.gz),重命名为testlink
2.创建数据库并新建用户(可以使用shell命令,也可以直接访问phpmyadmin进行操作)
#cd /opt/lampp/bin/
#./mysql -uroot -ppassword
>create database testlink;
>grant all privileges on testlink.* to testlink@"localhost" identified by ""
>flush privileges;
3.打开浏览器,访问http://localhost/testlink进入安装页面(也可以在本地远程访问,只需把localhost改为服务器的地址)
安装过程中:
database type:MYSQL
database host:localhost
database name :testlink
填写MYSQL数据库用户名和密码
Database login: root
Database password: password
填写testlink数据库的登录帐号和密码
testlink DB login: testlink
testlink DB password: password
完成。
1. 如果报错:
Checking if /var/testlink/logs/ directory exists [S] Failed!
Checking if /var/testlink/upload_area/ directory exists [S] Failed!
解决方案:修改/opt/lampp/htdocs/testlink/config.inc.php文件:
$ vim /opt/lampp/htdocs/testlink-1.9.16/config.inc.php
进入vim模式
/$tlCfg->log_path = '/var/testlink/logs/'; /* unix example */
[I]
注释:/$tlCfg->log_path = '/var/testlink/logs/'; /* unix example */
添加:$tlCfg->log_path = '[安装目录路径]/testlink/logs/';
[esc]
/$g_repositoryPath = '/var/testlink/upload_area/'; /* unix example */
[I]
注释:$g_repositoryPath = '/var/testlink/upload_area/'; /* unix example */
添加:$g_repositoryPath = '[安装目录路径]/testlink/upload_area/';
[esc]
:wq
退出vim模式
注意:testlinkDir 表示安装目录路径
2. 如果再报“directory is writable (by user used to run webserver process)”的错误,需要给TestLink目录下的upload_area、gui/templates_c和templates_c文件设置777权限:
$ chmod 777 /opt/lampp/htdocs/testlink-1.9.17/upload_area/
$ chmod 777 /opt/lampp/htdocs/testlink-1.9.17/logs/
$ chmod 777 /opt/lampp/htdocs/testlink-1.9.17/gui/templates_c/
3. 如果在页面上会显示“Deprecated : …… phpmailer/PHPMailerAutoload.php on line 45”这样的提示文本,需要修改参数:
$ vi /opt/lampp/htdocs/testlink-1.9.17/third_party/phpmailer/PHPMailerAutoload.php
进入vi模式
/function __autoload($classname)
[I]
修改为:function spl_autoload_register($classname)
[esc]
:wq
退出vi模式
3. 如果在页面上会显示“Deprecated : …… phpmailer/PHPMailerAutoload.php on line 45”这样的提示文本,需要修改参数:
Please copy the following into the ../config_db.inc.php file:
// Automatically Generated by TestLink Installer
define('DB_TYPE', 'mysql');
define('DB_USER', 'testlink');
define('DB_PASS', '');
define('DB_HOST', 'localhost');
define('DB_NAME', 'testlink');
define('DB_TABLE_PREFIX', '');
?>
Once that's been done, you can log into TestLink by pointing your browser at your TestLink site.
就在testlink目录下创建config_db.inc.php文件,并拷贝上面提示的信息到php里就可以啦
testlink mysql linux_Linux下搭建Testlink1.9.17相关推荐
- linux mysql dns_Linux下搭建DNS服务器及踩坑
DNS服务 域名系统(DNS)是建立在分布式数据库上的分层命名系统.该系统将域名转换为IP地址,并可以将域名分配给Internet组资源和用户,无论实体的物理位置如何. 说白了就是:域名与IP之间的相 ...
- mac mysql php_Mac下搭建Apache+PHP+MySql运行环境
前言 我们在Mac上搭建Apache+PHP+MySql环境是非常方便的,因为Mac预装的有Apache和PHP,我们可以直接使用.但是稍微费劲一点的是Mac没有预装Mysql,这个需要我们自力更生. ...
- mac mysql phpmyadmin_Mac下搭建PHP开发环境(Apache+PHP+MySQL+phpMyAdmin)
备注:OS 10.11 自带Apache 2.4.18和PHP 5.5:(升级macOS Sierra后Apache 2.4.23和PHP 5.6.24) 1. 运行Apache(根目录:/Libra ...
- 自定义安装mysql linux_linux下 安装mysql 问题
展开全部 因为32313133353236313431303231363533e4b893e5b19e31333365633934mysql程序在启动的时候 非常依赖my.cnf里面的配置,而my. ...
- mac mysql php_Mac下搭建PHP开发环境(Apache+PHP+MySQL+phpMyAdmin)
备注:OS 10.11 自带Apache 2.4.18和PHP 5.5:(升级macOS Sierra后Apache 2.4.23和PHP 5.6.24) 1. 运行Apache(根目录:/Libra ...
- mysql linux_linux下mysql下载安装
1.下载地址 https://www.mysql.com/downloads/ 选择community server 点击DOWLOAD 选择版本,当前选择的5.6版本 点击下载mysql-5.6. ...
- testlink mysql配置_TestLink环境搭建
项目组比较小,所以一直采用xls来管理测试用例,但是随着用例越来越多,感觉excel不是很适用,所以就找了一下有没有什么轻量级的测试用例管理系统,然后就发现了testlink. 在自己的机器上搭建了环 ...
- CentOS 7下搭建LAMP并把MySQL单独分离
CentOS 7下搭建LAMP并把MySQL单独分离 原文:http://www.linuxidc.com/Linux/2017-05/144037.htm 环境: 系统:CentOS-7-x86_6 ...
- 【MySQL主从复制】使用MySQL8.0.17的clone技术在线搭建主从复制环境
[MySQL主从复制]使用MySQL8.0.17的clone技术在线搭建主从复制环境 参考:https://www.xmmup.com/dbbao33shiyongmysql8-0-17declone ...
最新文章
- 一天一个Java基础——对象和类
- mysql忘记密麻麻_mysql忘记密码怎么办
- 【知识图谱】知识推理,知识图谱里最“人工智能”的一段
- bzoj 4551: [Tjoi2016Heoi2016]树【并查集】
- 进程间通信之共享内存
- c语言列出1~100所有素数_一次找出范围内的所有素数,埃式筛法是什么神仙算法?...
- 高光谱地物识别练习-从ENVI标准波普库中选择端元进行物质识别
- js 栈 html标签修复,js 打印错误堆栈
- IOS UIAlertView 提示视图
- IP数据包、ICMP协议以及ARP协议简单介绍
- android与单片机wifi通信原理图,基于单片机的wifi模块原理图分析
- 富士施乐 DocuCentre-V 3065 打印机远程命令执行漏洞
- 富士施乐Fuji Xerox DocuPrint M225 dw 驱动
- 寻找AR中的Big Difference - v4.0 #AR指南
- Referrer 还是 Referer?
- 人工智能续写贝多芬生前未完成的《第十交响曲》【智能快讯】
- 淋巴细胞转化中PHP的作用,淋巴细胞转化试验介绍|意义
- 待支付取件费用是什么意思_菜鸟裹裹待支付怎么取消
- uni.getUserProfile报错:fail can only be invoked by user TAP gesture
- 好程序员Java分享MySQL之SQL入门(一)