testlink安装配置详细步骤

来源:互联网 发布:尘埃3 for mac 编辑:程序博客网 时间:2024/04/27 19:29
一、apache的安装配置


1、双击apache安装文件,路径选择
2、安装好后在浏览器栏内输入http:\127.0.0.1,enter后出现it works,表示安装成功。
3、在apache文件夹里找到httpd.conf,双击打开httpd.conf


   ①在里面找到documentroot,使其后面的路径为"C:/Apache2.2/htdocs" 




   ②在找到directoryindex在其index.html前面加入index.php中间有空格




   ③找到#loadmodule,在所有的最下面加入下面内容,建立PHP和Apache的连接


   LoadModule php5_module "C:/php5/php5apache2_2.dll" 
   PHPIniDir "C:/php5/" 
   AddType application/x-httpd-php .php 
   AddType application/x-httpd-php .html
注释:上面D:/php5 是以PHP安装目录为准的如果解压的位置为C盘目录名为php那就改成


C:/php/


   修改好后保存。


二、php5.2.5的安装配置


1、在D盘下新建文件夹php5,把php5.2.5压缩包解压到这个文件夹,


2、解压后,把php5目录下将php_msql.dll 和libmySQL.dll 复制到c:/windows/system32下
(不成功使用:把php5目录下所有*.dll的文件和ext目录下所有的*.dll文件复制)


3、复制php.ini-dist文件到c:/windows/system32,并且重命名为php.ini


4、双击打开php.ini


   ①找到extension_dir,将其后面的路径修改为"C:\php5\ext"


 
   ②找到cgi.force_redirect = 1,将1改为0


   ③;extension=php_mysql.dll 和;extension=php_mysqli.dll前面的分号去掉。即开放数据库的功能,
使其支持MySQL  修改好后保存,并且将修改好后的php.ini文件复制粘贴到C:\php5下。
(不成功使用:在开启  ;extension=php_mbstring.dll 


                      ;extension=php_mcrypt.dll)


5、新建文件index.php,存放在C:\Program Files\Apache Software Foundation\Apache2.2\htdocs,添加并保存内容:
        <?php
            phpinfo();
        ?>
6、重启apache


  


三,mysql5.0的安装


1、双击mysql5.0的安装包,安装路径没有限定


2、安装步骤中在要求输入用户名和密码的时候,用户名为root 密码为任意但不能忘了


3.数据库没有过多修改的只要记得root和密码后面安装时有用到不可输错不然安装时连接不到数据库


四、testlink的安装


1、将testlink1.8.5安装包解压到C:\Apache2.2\htdocs目录下并且命名为 testlink


 (确定testlinknk内没有从文件夹只有testlink的自带文件,有的会解压出多一个文件夹


2、在浏览器栏内输入http://localhost/testlink/index.php


3、点击 new testlink,进入testlink页面自动安装配置界面


4、在database username内输入root 在password内输入安装数据库时的密码


5、在testlink username和password里分别输入任意的字母和数字 (此为testlink的数据库用户名和密码)


6、accessed->press->create


7、提示您create mew testlink 成功


8、输入admin,admin进入testlink.




错误:
testlink安装时,点击“Process TestLink Setup”后,出现页面报错:
“Checking PHP DB extensions Warning!: Your PHP installation don't have the mysql extension mysql- without it is IMPOSSIBLE to use Testlink.Failed!”


返回前一步,看检查配置时,发现:
Checking MySQL Database                              Failed! MySQL Database cannot be used.
Checking Postgres Database                           Failed! Postgres Database cannot be used.
Checking GD Graphic library                          OK
Checking LDAP library                                Failed! LDAP library not enabled. LDAP
 
解决方案:1)、重新安装了MYSQL;
2)、  将 PHP安装目录下的 php5ts.dll 文件复制到C:\window\system32目录中.
将PHP安装 目录下的libmysql.dll文件到 C:\windows\system32\ 目录中。
这时Checking MySQL Database后面就显示ok了
3)、Checking LDAP library OK
php.ini 文件修改如下:
extension=php_ldap.dll
4)、Checking Postgres Database Failed! Postgres Database cannot be used.
如果安装了MySQL或SqlServer ,不用处理该警告;


注:修改php.ini配置文件后,需要重启机器后才生效。
0 0
原创粉丝点击