How to install and setup Testlink on window machine?

Perquisite:
  1. Download and install xampp application into your machine from link: "http://www.apachefriends.org/en/xampp-windows.html" 
  2. Download testlink from link "http://sourceforge.net/projects/testlink/files/" and put into xampp's htdocs directory.
  3. Extract downloaded zip file into xampp's htdocs directory.
  4. Start Xampp application and start “Apache” and “MySql” Server, your window look like below screen:
Steps to setup:

1. Open browser and go to url “localhost/phpmyadmin”
2. Click on “DataBases” menu and create new data base like “testlink”
3. Your created data base listed in left side panel like as in below screen:
4. Click on created database from left panel then Click on “More” >> “Privileges”.
5. Click on “Add User”after that enter user details and click on “Check All” link. 

 

6. Click on “Go” button. Now your database created with database user
7. Navigate “http://localhost/testlink-1.9.7” on browser as replace "testlink-1.9.7" to your testlink folder name.

8. Click on "New installation" link.
9. Click on check box “I agree to the terms set out in this license.” And click on “Continue” button. You should see below screen:


10. You should see that “Checking if /var/testlink/logs/ directory exists” and “Checking if /var/testlink/upload_area/ directory exists ” status failed.
11. You need to set path according your machine.
12. Goto testlink package and open “config.inc.php” file, update path “$tlCfg->log_path” and “$g_repositoryPath” as below:
Old path:
$tlCfg->log_path = '/var/testlink/logs/';
$g_repositoryPath = '/var/testlink/upload_area/';

Updated path:
$tlCfg->log_path = 'D:/xampp/htdocs/testlink-1.9.7/logs/'
$g_repositoryPath = 'D:/xampp/htdocs/testlink-1.9.7/upload_area/';


13.  Again refresh page and you should see that “Failed” status change with “OK”

14. Click on “Continue” button. Enter your data base name into “Database name” input field. Enter root into “Database admin login” input filed.
15. Enter data base user name and password into “TestLink DB login” and “TestLink DB password” field.
16. Click on “Process TestLink Setup” button. You should see that test link “Installation was successful!” message display.

17. Again go to url “http://localhost/testlink-1.9.7”. and enter “admin” into both “Login Name” and Password” field. Click on “Login” button.
18. You should log into testlink.

74 comments:

  1. Thanks for posting this, steps are very clear

    ReplyDelete
  2. In step 17, log in with 'admin' username and password. Use 'a', instead of 'A'

    ReplyDelete
    Replies
    1. Thanks Ruchita for correcting, I have updated...

      Delete
  3. Excellent one! I really followed each and every step mentioned here. Though I faced some issues with the credentials, till the end I followed and successfully installed TestLink in my system. Thanks a lot

    ReplyDelete
  4. Great Job. Thank you

    ReplyDelete
  5. Its really Helpful for installing Testlink .
    Have been able to install succesfully

    ReplyDelete
  6. This was so very helpful to me. The documentation on Testlink's website didn't work at all, but this was spot on. Kudos!

    ReplyDelete
  7. Thanks a lot for these details steps...everything went without any hickups!!

    ReplyDelete
  8. Thanks this was very help ful

    ReplyDelete
  9. Awsome POST...very helpful

    ReplyDelete
  10. Thank you and the installation was succesfull but How Do i access the server from a different machine.

    ReplyDelete
    Replies
    1. Hi Rohit
      you can access using IP address of TestLink installed machine from other machine with in your network. If want to access outside your network then you need to set static ip in your testlink machine

      Delete
    2. Hi,
      THank you for the reply.

      I do not have the server on the same network. I have set this up in an amazon aws server as I am testing it to see if it works out for us. Please help me how I could setup the static IP.

      My end goal is to provide access to this server using a URL to all my team members so that they can upload their test cases without logging into the actual server. Please help me out

      Delete
  11. Hi,
    I've installed TestLink 1.9.11 on xampp few months ago. Everything was just working fine.
    Now I'm trying to move my xampp and TestLink to a server (so I can access from within my network, not only to local pc). I exported my TestLink database (via MySQL workbench) so I could use the same date on the server. I used the latest Testlink v 1.9.12 and used the same database I had in my local PC.
    Upon launching the TestLink page, I get an error message on the login page something like "schema used for TestLink is 1.9.11 cannot be opened on 1.9.12".
    Anybody experienced this? How did you fix it?

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. Appreciate your detailed and accurate step by step, it worked very well. Thanks

    ReplyDelete
  14. Error: Apache shutdown unexpectedly.
    1:18:36 PM [Apache] This may be due to a blocked port, missing dependencies,
    1:18:36 PM [Apache] improper privileges, a crash, or a shutdown by another method.
    1:18:36 PM [Apache] Press the Logs button to view error logs and check
    1:18:36 PM [Apache] the Windows Event Viewer for more clues
    1:18:36 PM [Apache] If you need more help, copy and post this
    1:18:36 PM [Apache] entire log window on the forums

    I am getting this error in step 4. Please let me know how to fix this

    ReplyDelete
  15. Error: Apache shutdown unexpectedly.
    1:18:36 PM [Apache] This may be due to a blocked port, missing dependencies,
    1:18:36 PM [Apache] improper privileges, a crash, or a shutdown by another method.
    1:18:36 PM [Apache] Press the Logs button to view error logs and check
    1:18:36 PM [Apache] the Windows Event Viewer for more clues
    1:18:36 PM [Apache] If you need more help, copy and post this
    1:18:36 PM [Apache] entire log window on the forums

    ReplyDelete
  16. Error: Apache shutdown unexpectedly.
    1:18:36 PM [Apache] This may be due to a blocked port, missing dependencies,
    1:18:36 PM [Apache] improper privileges, a crash, or a shutdown by another method.
    1:18:36 PM [Apache] Press the Logs button to view error logs and check
    1:18:36 PM [Apache] the Windows Event Viewer for more clues
    1:18:36 PM [Apache] If you need more help, copy and post this
    1:18:36 PM [Apache] entire log window on the forums

    I am getting this error. please let me know how to fix it.

    ReplyDelete
    Replies
    1. Your machine port 80 is already in use or it is blocked by firewall. so you need to free this port

      Delete
  17. Hi admin,
    Thanks for your help.

    I have a problem when typing the following: http://localhost/testlink-1.9.7. It appears: the requested page cannot be found.
    I have no idea what is going on, I followed the steps on this site and everything worked well to this point.

    Can you help me please? Many thanks

    ReplyDelete
  18. 4:25:53 PM [Apache] Error: Apache shutdown unexpectedly.
    4:25:53 PM [Apache] This may be due to a blocked port, missing dependencies,
    4:25:53 PM [Apache] improper privileges, a crash, or a shutdown by another method.
    4:25:53 PM [Apache] Press the Logs button to view error logs and check
    4:25:53 PM [Apache] the Windows Event Viewer for more clues
    4:25:53 PM [Apache] If you need more help, copy and post this
    4:25:53 PM [Apache] entire log window on the forums

    I am getting this error. please let me know how to fix it.

    ReplyDelete
  19. 4:25:53 PM [Apache] Error: Apache shutdown unexpectedly.
    4:25:53 PM [Apache] This may be due to a blocked port, missing dependencies,
    4:25:53 PM [Apache] improper privileges, a crash, or a shutdown by another method.
    4:25:53 PM [Apache] Press the Logs button to view error logs and check
    4:25:53 PM [Apache] the Windows Event Viewer for more clues
    4:25:53 PM [Apache] If you need more help, copy and post this
    4:25:53 PM [Apache] entire log window on the forums

    I am getting this error. please let me know how to fix it.

    ReplyDelete
  20. Hi admin,

    I was trying to setup testink following the above steps. I'm struck near step 5 & 6. I was able to create "testlink" database, but not able to add user.

    I provided user name as "testlink",
    host name as "local host".
    I gave passwords.
    I clicked on "select all". Now when I click on "GO", the following error is displayed

    "#1065 - Query was empty".
    "The selected user was not found in the privilege table."

    ReplyDelete
  21. Hi admin,

    Why is it that whenever I access http://localhost/testlink-1.9.14/install/index.php, there is an error message that says:

    The connection was reset
    The site could be temporarily unavailable or too busy. Try again in a few
    moments.
    If you are unable to load any pages, check your computer's network
    connection.
    If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.

    I already turned off my firewall and Apache and mySQL are running.

    Please help me.

    Thank you! :)

    ReplyDelete
  22. Hi admin,

    When I am accessing http://localhost/testlink-1.9.14/install/index.php, error message appears:

    The connection was reset







    The connection to the server was reset while the page was loading.





    The site could be temporarily unavailable or too busy. Try again in a few
    moments.
    If you are unable to load any pages, check your computer's network
    connection.
    If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.

    I just followed the previous steps and made sure that Apache and mySQL are running.

    Please help me.

    Thank you! :)

    ReplyDelete
    Replies
    1. Can you check "Firewall or proxy, make sure
      that Firefox is permitted to access the Web". might be your firewall is blocking

      Delete
    2. Hi Admin,

      It is still not working. Tried it in Google Chrome and Firefox.
      Apache also automatically stops whenever I try accessing the link.

      Delete
    3. Hi , I have the same issue, any updates on this.

      Delete
  23. Hi, i have the same issue , any updates on it.

    ReplyDelete
  24. Hi,
    I did installation with the help of above steps. When I click on Login Testlink or trying to navigate to login page I am getting below exception. Can someone please help what going wrong. Thanks In advance!!

    Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "C:\xampp\htdocs\testlink-1.9.14\gui\templates\login.tpl" on line 23 "{if $tlCfg->demoMode}{$labels.demo_usage}{/if}" unknown tag "private_print_expression"' in C:\xampp\htdocs\testlink-1.9.14\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php:665 Stack trace: #0 C:\xampp\htdocs\testlink-1.9.14\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php(451): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "pr...', 23) #1 C:\xampp\htdocs\testlink-1.9.14\third_party\smarty3\libs\sysplugins\smarty_internal_templateparser.php(2353): Smarty_Internal_TemplateCompilerBase->compileTag('private_print_e...', Array, Array) #2 C:\xampp\htdocs\testlink-1.9.14\third_party\smarty3\libs\sysplugins\smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r27() #3 C:\xampp\htdocs\testlink-1.9.14\third_party\smarty3\lib in C:\xampp\htdocs\testlink-1.9.14\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 665

    ReplyDelete
  25. Hi,
    I did installation with the help of above steps. When I click on Login Testlink or trying to navigate to login page I am getting below exception. Can someone please help what going wrong. Thanks In advance!!

    Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "C:\xampp\htdocs\testlink-1.9.14\gui\templates\login.tpl" on line 23 "{if $tlCfg->demoMode}{$labels.demo_usage}{/if}" unknown tag "private_print_expression"' in C:\xampp\htdocs\testlink-1.9.14\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php:665 Stack trace: #0 C:\xampp\htdocs\testlink-1.9.14\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php(451): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "pr...', 23) #1 C:\xampp\htdocs\testlink-1.9.14\third_party\smarty3\libs\sysplugins\smarty_internal_templateparser.php(2353): Smarty_Internal_TemplateCompilerBase->compileTag('private_print_e...', Array, Array) #2 C:\xampp\htdocs\testlink-1.9.14\third_party\smarty3\libs\sysplugins\smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r27() #3 C:\xampp\htdocs\testlink-1.9.14\third_party\smarty3\lib in C:\xampp\htdocs\testlink-1.9.14\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 665

    ReplyDelete
    Replies
    1. I am also getting fatal error .....
      Fatal error: Uncaught SmartyCompilerException: Syntax Error in template "C:\xampp\htdocs\testlink-1.9.15\gui\templates\login-model-marcobiedermann.tpl" on line 9 "<title>{$labels.login}</title>" unknown tag "private_print_expression" in C:\xampp\htdocs\testlink-1.9.15\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php:665 Stack trace: #0 C:\xampp\htdocs\testlink-1.9.15\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php(451): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "pr...', 9) #1 C:\xampp\htdocs\testlink-1.9.15\third_party\smarty3\libs\sysplugins\smarty_internal_templateparser.php(2353): Smarty_Internal_TemplateCompilerBase->compileTag('private_print_e...', Array, Array) #2 C:\xampp\htdocs\testlink-1.9.15\third_party\smarty3\libs\sysplugins\smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r27() #3 C:\xampp\htdocs\testlink-1.9.15\third_party\smarty3\libs in C:\xampp\htdocs\testlink-1.9.15\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 665

      Delete
  26. Hi admin,
    I have managed to go through all the process tht you have given above and it worked perfectly.But now I have encountered a problem that i seem not to manage to solve.

    Here is the error:
    Warning!: Your PHP installation don't have the mysql extension mysql- without it is IMPOSSIBLE to use Testlink.Failed! Please help

    ReplyDelete
  27. Hi admin,
    I have manage to install everything perfectly but now i have encountered this error and am unable to solve it.
    here is the error:
    Warning!: Your PHP installation don't have the mysql extension mysql- without it is IMPOSSIBLE to use Testlink.Failed!
    Please help

    ReplyDelete
  28. Hi Admin,
    I seem to have the same problem as Diana. It says PHP installation don't have the mysql extension ....

    However when i go to ...xampp\php\ext (path indicated in php.ini), i see that php_mysql and php_mysqli dlls exist. Any idea what compatibility issues here...

    ReplyDelete
  29. got it... php_mysql.dll was disabled in php.ini by default. Enabled the same and restarted apache. It works fine then

    ReplyDelete
    Replies
    1. How to enable php_mysql.dll in php.ini

      Delete
    2. Hi Rohith, would you mind if I will ask on how you enable php_mysql.dll? Thank you in advance. :)

      Delete
  30. Hi,

    I tried to install Testlink 1.9.14.I'm getting this error message Checking PHP DB extensions Warning!: Your PHP installation don't have the mysql extension mysql- without it is IMPOSSIBLE to use Testlink.Failed! - Pls help to resolve

    ReplyDelete
    Replies
    1. Hi, I just want to ask if you already have a solution for this? I also got the same error message and I haven't find answer yet. Thank you in advance.

      Delete
    2. Hi, I just want to ask if you already have a solution for this? I also got the same error message and I haven't find answer yet. Thank you in advance. :)

      Delete
  31. Hi,

    I tried to install Testlink,I'm getting the error message Checking PHP DB extensions Warning!: Your PHP installation don't have the mysql extension mysql- without it is IMPOSSIBLE to use Testlink.Failed! -Pls help to resolve

    ReplyDelete
  32. I am also getting the same issue, do anyone has the solution.

    Thanks

    ReplyDelete
  33. Its really Helpful for installing Testlink .

    ReplyDelete
  34. Hi everyone,

    I also got the same error message.

    Checking PHP DB extensions Warning!: Your PHP installation don't have the mysql extension mysql- without it is IMPOSSIBLE to use Testlink.Failed!

    Please help on how to find solution for this. Thank you in advance. :)

    ReplyDelete
  35. Please use xampp version 5.5.35 / PHP 5.5.35 for download.
    This will support mysql extension for PHP.

    ReplyDelete
  36. User xampp version 5.5.35 / PHP 5.5.35 to. This supports mysql extension for PHP

    ReplyDelete
  37. Thank you so much for guidance. I have successfully installed test link. Once againthanks alot.

    ReplyDelete
  38. Thanks alot for your guidance. I have successfully installed test link. Once again thanks alot.

    ReplyDelete
  39. Hi,

    On first step of setup
    >>Open browser and go to url “localhost/phpmyadmin”
    I'm getting an error "Object not found!"

    Object not found!

    The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

    If you think this is a server error, please contact the webmaster.

    Error 404

    localhost
    Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9

    Can anyone help me in resolving the issue?

    ReplyDelete
  40. Hi,

    What would be my DB URL for testlink?
    appreciate your reply
    Thanks!

    ReplyDelete
  41. Hello,
    I have entered all the required credentials as such as
    DB name
    Database host
    Database name
    Database admin login
    Database admin password
    Testlink DB login
    Testlink DB password
    After clicking on "Go" button I am getting this following error

    TestLink setup will now attempt to setup the database:

    Creating connection to Database Server:Failed!

    Please check the database login details and try again.
    Database Error Message: MySQL server has gone away

    ReplyDelete
  42. Hi Admin,
    I have successfully installed testlink 9.1.15 but when tried to login got Fatal error:
    Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "C:\xampp\htdocs\testlink-1.9.15\gui\templates\login-model-marcobiedermann.tpl" on line 9 "<title>{$labels.login}</title>" unknown tag "private_print_expression"' in C:\xampp\htdocs\testlink-1.9.15\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php:665 Stack trace: #0 C:\xampp\htdocs\testlink-1.9.15\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php(451): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "pr...', 9) #1 C:\xampp\htdocs\testlink-1.9.15\third_party\smarty3\libs\sysplugins\smarty_internal_templateparser.php(2353): Smarty_Internal_TemplateCompilerBase->compileTag('private_print_e...', Array, Array) #2 C:\xampp\htdocs\testlink-1.9.15\third_party\smarty3\libs\sysplugins\smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r27() #3 C:\xampp\htdocs\testlink-1.9.1 in C:\xampp\htdocs\testlink-1.9.15\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 665
    Could you please help to resolve this problem?

    ReplyDelete
    Replies
    1. Did u get the solution for this iisue?

      Delete
    2. Did u get the solution for this issue?

      Delete
  43. HI ,
    On installing everything works until step 6 , on pasting the URL in localhost in step 7" http://localhost/testlink-1.9.15/testlink-1.9.15"
    File index.php is located in same folder
    -- A message is observed for Object Not Found
    Please help in this regards

    ReplyDelete
  44. I'm having the same issue using ver 1.9.16. I also installed Bitnami as recommended bvut can't get pass the following error and can't find any solution:
    Fatal error: Uncaught SmartyCompilerException: Syntax Error in template "C:\xampp\htdocs\testlink-1.9.16\gui\templates\login-model-marcobiedermann.tpl" on line 9 "<title>{$labels.login}</title>" unknown tag "private_print_expression" in C:\xampp\htdocs\testlink-1.9.16\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php:665 Stack trace: #0 C:\xampp\htdocs\testlink-1.9.16\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php(451): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "pr...', 9) #1 C:\xampp\htdocs\testlink-1.9.16\third_party\smarty3\libs\sysplugins\smarty_internal_templateparser.php(2353): Smarty_Internal_TemplateCompilerBase->compileTag('private_print_e...', Array, Array) #2 C:\xampp\htdocs\testlink-1.9.16\third_party\smarty3\libs\sysplugins\smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r27() #3 C:\xampp\htdocs\testlink-1.9.16\third_party\smarty3\libs in C:\xampp\htdocs\testlink-1.9.16\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 665

    Thanks,

    ReplyDelete
  45. Very good reference material

    ReplyDelete
  46. Hi Admin,
    I have followed above mentioned steps but getting error message when I updated the values in config file

    Parse error: syntax error, unexpected ':' in C:\xampp\htdocs\testlink-1.9.16\testlink-1.9.16\config.inc.php on line 205

    While there is mo : on line 205 please help me and provide some solution I am using testlink-1.9.16

    ReplyDelete
  47. Dear admin

    i try to install testlink on window 7 and have issue as below:
    At step 9: i got error message:"Checking MySQL Database Failed! MySQL Database cannot be used."
    Could you please help to resolve this issue?

    Thanks,

    ReplyDelete
  48. This comment has been removed by the author.

    ReplyDelete
  49. thanks for your tuto, no issue seen following all the described steps.
    thumbs up for you guys.

    ReplyDelete
  50. Hi Admin,

    I am getting following error

    Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in C:\xampp\htdocs\testlink-1.9.16\testlink-1.9.16\third_party\phpmailer\PHPMailerAutoload.php on line 45

    ReplyDelete
  51. Hi, I have a problem, it is that when I give Process Test Link Setup, I get Creating connection to Database Server: Failed!, help :c

    ReplyDelete

Leave your comments, queries, suggestion I will try to provide solution