Testlink 1.7 database setup hangs during install

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
tendonstrength
TestLink user
Posts: 7
Joined: Wed Jul 25, 2007 4:04 pm

Testlink 1.7 database setup hangs during install

Post by tendonstrength »

I'm currently trying to install testlink to evaluate it, but I'm having problems getting it installed on Windows using Apache 2.2.4


When I first go to the install screen I get the following results for the prereq checking:
TestLink Setup has carried out a number of checks to see if everything's ready to start the setup.

Checking PHP version:
WARNING! You are running on PHP 5.2.3, and TestLink has not been tested on versions >= 5.2.0

Warning!: You are using a M$ Operating System, be careful with authentication problems
between PHP 4 and the new MySQL 4.1.x passwords
Read this MySQL - A.2.3. Client does not support authentication protocol


Checking if Register Globals = OFF: OK!
Checking if sessions are properly configured: OK!
Checking if ../gui/templates_c directory exists: OK!
Checking if ../gui/templates_c directory is writable: OK!
Checking if PEAR modules are installed:OK!

I figured that since I didn't want to downgrade MySQL and PHP and that these were just warnings I would give the install a shot anyway just to see if any problems would occur or if things would just magically work ok (naive, I know).

After I get past the initial install screen and the license agreement screen it takes me to a screen that says this:
TestLink setup will now attempt to setup the database:

Creating connection to Database Server:

And that's the only thing that loads. There are no error messages or anything; it just gets to that point and stays there. Any ideas about what's causing this? I'm not surprised that it's not working, but I would at least like to know exactly what's going on so that I can look into fixing it.
tendonstrength
TestLink user
Posts: 7
Joined: Wed Jul 25, 2007 4:04 pm

error from log

Post by tendonstrength »

I dug around a little (sorry, I'm pretty new to this stuff), and I found this error in the Apache error log:
[Wed Jul 25 14:33:32 2007] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mysql_connect() in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\testlink\\install\\installNewDB.php on line 144, referer: http://localhost/testlink/install/license.php

Is there any way I can define this function? Is this a problem with my environment? Is there something that should be installed or that should be in my path but isn't there? Sorry to be so ignorant, but I've never used PHP before. I'll read up on PHP some, but in the meantime if someone can point me in the right direction it would be much appreciated.
tendonstrength
TestLink user
Posts: 7
Joined: Wed Jul 25, 2007 4:04 pm

figured it out - needed PHP mysql extension

Post by tendonstrength »

Ok, I just needed a slight tweak in my PHP installation.

When I installed PHP I didn't install the mysql extension because I just accepted the default options which don't happen to include the mysql extension.

The key is to choose custom when you run the PHP install and select the mysql extension when you chose the items to install.

If PHP is already install you don't have to re-install, just run the installer again and select change. Then you can go through custom install again and chose the mysql extension.

So there it is. I answered my own question, but hopefully someone else will benefit in the future. I guess that's why I'm in QA; I have the questions AND the answers.
Stef
TestLink user
Posts: 1
Joined: Mon Jul 30, 2007 10:06 am

Post by Stef »

Hi,
I had the same problem as you described. Thanks to the solution you provided in this topic I was able to get trough the installation. Thanks !!! :D
Post Reply