Win7 64位操作系统下搭建testlink 1.9.8
2015-08-28 12:08
253 查看
本文转载文章链接:/article/3457870.html,根据自己的具体情况,稍有删改或注释而已。
一、安装软件准备
1、Apache(httpd-2.4.16-win64-VC11)
2、PHP(php-5.6.12-Win32-VC11-x64)
3、MySQL(mysql-5.6.25-winx64)
4、testlink1.9.8
二、安装Apache
1、解压httpd-2.2.19-win64到 C:\testlink_bugzilla\httpd-2.4.16-win64-VC11(ps:存放路径可以自行设置)
2、在cmd命令行中进入C:\testlink_bugzilla\httpd-2.4.16-win64-VC11\Apache24\bin目录,执行httpd -k install
![](http://static.oschina.net/uploads/space/2014/1112/160219_OuQx_2270174.png)
![](http://static.oschina.net/uploads/space/2014/1112/160220_WW6I_2270174.png)
3、修改C:\testlink_bugzilla\httpd-2.4.16-win64-VC11\Apache24\conf\httpd.conf
(1) #ServerRoot "c:/Apache24" 此为注释掉的语句
ServerRoot "C:\testlink_bugzilla\httpd-2.4.16-win64-VC11\Apache24"
(2)往下找到apache开启的功能模块:#LoadModule vhost_alias_module modules/mod_vhost_alias.so
模块后面添加:
LoadModule php5_module "C:\testlink_bugzilla\php-5.6.12-Win32-VC11-x64/php5apache2_4.dll"
PHPiniDir "c:/windows/php.ini" // php.ini 文件在下文配置php时修改编辑,并拷贝到c:/windows/目录下
AddType application/x-httpd-php .html .htm .php
(3)继续往下,找到
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
修改DocumentRoot和Directory为:
DocumentRoot "C:\testlink_bugzilla"
<Directory "C:\testlink_bugzilla">
4、再次在命令提示符 执行 httpd -k start 没有错误即服务器启动成功
![](http://static.oschina.net/uploads/space/2014/1112/171152_pAvd_2270174.png)
5、IIS默认80端口,因此修改一下httpd.conf中listen端口为81,否则会出现冲突。
![](http://static.oschina.net/uploads/space/2014/1112/174143_FBAU_2270174.png)
三、配置PHP
1、PHP目录解压到C:\testlink_bugzilla\php-5.6.12-Win32-VC11-x64\
2、将php.ini-development修改成php.ini
3、打开php.ini,找到extension_dir,修改其值为C:\testlink_bugzilla\php-5.6.12-Win32-VC11-x64\ext
; On windows:
extension_dir = "C:\testlink_bugzilla\php-5.6.12-Win32-VC11-x64\ext"
4、找到扩展列表,
;extension=php_gd2.dll
;extension=php_mysql.dll
;extension=php_mysqli.dll
去掉前面的“;”,即为开启该扩展。
将php.ini 文件拷贝到c:/windows/目录下
5、在C:\testlink_bugzilla\下创建一t.php文件,内容为
<?php
phpinfo();
?>
然后在浏览器地址栏中输入http://localhost:81/t.php
看到如下图示信息表示配置成功(注:图中框起来的地方要格外注意 看信息是否可以出来)
![](http://static.oschina.net/uploads/space/2014/1112/174707_eTth_2270174.png)
四、安装MySQL
MySQL数据库在前文搭建bugzilla时已经安装,这里不在赘述。
最后,在C:\testlink_bugzilla\下创建cc.php:
<?php
$link=mysql_connect("localhost","root","******root用户的密码******");
if(!$link) echo "link failed ! ";
else echo "link mysql succeed ! ";
?>
然后在浏览器上输入http://localhost:81/cc.php,若出现如下字样:
link mysql succeed !
表明数据库连接已经成功。
五、安装testlink
1、testlink1.9.8解压到C:\testlink_bugzilla\testlink\testlink-1.9.8下。
2、问http://localhost:81/testlink/testlink-1.9.8/login.php开始安装wizard安装 ,在用到数据库的时候填写“root”用户和密码。
安装过程中遇到问题:
a.点击安装提示:
Checking if /var/testlink/logs/ directory exists [S] Failed!
Checking if /var/testlink/upload_area/ directory exists [S] Failed!
解决方法:
在config.inc.php修改
$tlCfg->log_path = TL_ABS_PATH . 'logs' . DIRECTORY_SEPARATOR ;
$g_repositoryPath = TL_ABS_PATH . "upload_area" . DIRECTORY_SEPARATOR;
3、装成功之后 输入http://loacalhost:81/testlink/login.php 就可以打开testlink
开始使用了,登录的用户和密码都是“admin”
![](http://static.oschina.net/uploads/space/2014/1113/092446_alvh_2270174.png)
登录之后,有如下的警告:
Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are
still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\testlink_bugzilla\testlink\testlink-1.9.8\config.inc.php on line 757
Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are
still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\testlink_bugzilla\testlink\testlink-1.9.8\config.inc.php on line 1363
解决办法:
在config.inc.php文件前面添加
date_default_timezone_set("PRC");
一、安装软件准备
1、Apache(httpd-2.4.16-win64-VC11)
2、PHP(php-5.6.12-Win32-VC11-x64)
3、MySQL(mysql-5.6.25-winx64)
4、testlink1.9.8
二、安装Apache
1、解压httpd-2.2.19-win64到 C:\testlink_bugzilla\httpd-2.4.16-win64-VC11(ps:存放路径可以自行设置)
2、在cmd命令行中进入C:\testlink_bugzilla\httpd-2.4.16-win64-VC11\Apache24\bin目录,执行httpd -k install
![](http://static.oschina.net/uploads/space/2014/1112/160219_OuQx_2270174.png)
![](http://static.oschina.net/uploads/space/2014/1112/160220_WW6I_2270174.png)
3、修改C:\testlink_bugzilla\httpd-2.4.16-win64-VC11\Apache24\conf\httpd.conf
(1) #ServerRoot "c:/Apache24" 此为注释掉的语句
ServerRoot "C:\testlink_bugzilla\httpd-2.4.16-win64-VC11\Apache24"
(2)往下找到apache开启的功能模块:#LoadModule vhost_alias_module modules/mod_vhost_alias.so
模块后面添加:
LoadModule php5_module "C:\testlink_bugzilla\php-5.6.12-Win32-VC11-x64/php5apache2_4.dll"
PHPiniDir "c:/windows/php.ini" // php.ini 文件在下文配置php时修改编辑,并拷贝到c:/windows/目录下
AddType application/x-httpd-php .html .htm .php
(3)继续往下,找到
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
修改DocumentRoot和Directory为:
DocumentRoot "C:\testlink_bugzilla"
<Directory "C:\testlink_bugzilla">
4、再次在命令提示符 执行 httpd -k start 没有错误即服务器启动成功
![](http://static.oschina.net/uploads/space/2014/1112/171152_pAvd_2270174.png)
5、IIS默认80端口,因此修改一下httpd.conf中listen端口为81,否则会出现冲突。
![](http://static.oschina.net/uploads/space/2014/1112/174143_FBAU_2270174.png)
三、配置PHP
1、PHP目录解压到C:\testlink_bugzilla\php-5.6.12-Win32-VC11-x64\
2、将php.ini-development修改成php.ini
3、打开php.ini,找到extension_dir,修改其值为C:\testlink_bugzilla\php-5.6.12-Win32-VC11-x64\ext
; On windows:
extension_dir = "C:\testlink_bugzilla\php-5.6.12-Win32-VC11-x64\ext"
4、找到扩展列表,
;extension=php_gd2.dll
;extension=php_mysql.dll
;extension=php_mysqli.dll
去掉前面的“;”,即为开启该扩展。
将php.ini 文件拷贝到c:/windows/目录下
5、在C:\testlink_bugzilla\下创建一t.php文件,内容为
<?php
phpinfo();
?>
然后在浏览器地址栏中输入http://localhost:81/t.php
看到如下图示信息表示配置成功(注:图中框起来的地方要格外注意 看信息是否可以出来)
![](http://static.oschina.net/uploads/space/2014/1112/174707_eTth_2270174.png)
四、安装MySQL
MySQL数据库在前文搭建bugzilla时已经安装,这里不在赘述。
最后,在C:\testlink_bugzilla\下创建cc.php:
<?php
$link=mysql_connect("localhost","root","******root用户的密码******");
if(!$link) echo "link failed ! ";
else echo "link mysql succeed ! ";
?>
然后在浏览器上输入http://localhost:81/cc.php,若出现如下字样:
link mysql succeed !
表明数据库连接已经成功。
五、安装testlink
1、testlink1.9.8解压到C:\testlink_bugzilla\testlink\testlink-1.9.8下。
2、问http://localhost:81/testlink/testlink-1.9.8/login.php开始安装wizard安装 ,在用到数据库的时候填写“root”用户和密码。
安装过程中遇到问题:
a.点击安装提示:
Checking if /var/testlink/logs/ directory exists [S] Failed!
Checking if /var/testlink/upload_area/ directory exists [S] Failed!
解决方法:
在config.inc.php修改
$tlCfg->log_path = TL_ABS_PATH . 'logs' . DIRECTORY_SEPARATOR ;
$g_repositoryPath = TL_ABS_PATH . "upload_area" . DIRECTORY_SEPARATOR;
3、装成功之后 输入http://loacalhost:81/testlink/login.php 就可以打开testlink
开始使用了,登录的用户和密码都是“admin”
![](http://static.oschina.net/uploads/space/2014/1113/092446_alvh_2270174.png)
登录之后,有如下的警告:
Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are
still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\testlink_bugzilla\testlink\testlink-1.9.8\config.inc.php on line 757
Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are
still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\testlink_bugzilla\testlink\testlink-1.9.8\config.inc.php on line 1363
解决办法:
在config.inc.php文件前面添加
date_default_timezone_set("PRC");
相关文章推荐
- 怎么在android4.4上添加未读信息,未接来电或日历等新事件图标提醒
- 简要对比C语言中的setgid()函数和setregid()函数
- 破解windows系统本地用户密码
- id选择器
- 一分钟教你知道乐观锁和悲观锁的区别
- Gartner报告:多数CIO还未对数字化做好准备
- iOS设计模式 - 单例
- jquery实现超简洁的TAB选项卡效果代码
- JavaScript模块化学习基础
- POJ2836--Rectangular Covering
- 百度地图经纬度转换到腾讯地图/Google 对应的经纬度
- C中的继承和多态
- Html中px与em
- 【Leetcode】【Hard】Merge k Sorted Lists
- Git版本控制:Git冲突解决 相关错误总结
- 九度OJ 题目1080:进制转换
- Java map list 解决复杂表格的数据问题
- 关于InetAddress类确定特殊IP地址简介
- Git相关错误总结
- Docker资料整理