Please help me in this regard urgent

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
Testuser
TestLink user
Posts: 3
Joined: Thu Apr 06, 2006 5:34 am

Please help me in this regard urgent

Post by Testuser »

I am getting the below error message...I am unable to resolve pleasehelp...I am using apache,php and win XP

TestLink Installation - new

TestLink setup will now attempt to setup the database:

Creating connection to Database Server: OK!
OK!
Checking MySQL version: OK! (4.1.10-nt >= 4.1.0)


Selecting database `TestLink`: OK!
Creating Testlink DB user `admin`: OK! (ok - user_exists)
Processing:sql/testlink_create_tables.sql

Importing StartUp data OK!
Writing configuration file:
Notice: Undefined variable: user_host in c:\\inetpub\\wwwroot\\testlink\\testlink\\install\\installNewDB.php on line 472
Failed!

TestLink couldn\'t write the config file. Please copy the following into the ../config_db.inc.php file:
Once that\'s been done, you can log into TestLink by pointing your browser at your TestLink site.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

What TL version are you using ?
Please use 1.6.1

Need more info to help you.
Try to debug the code (it\'s not so complicated)
Testuser
TestLink user
Posts: 3
Joined: Thu Apr 06, 2006 5:34 am

Re: Please help me in this regard urgent

Post by Testuser »

Testuser wrote:I am getting the below error message...I am unable to resolve pleasehelp...I am using apache,php and win XP

TestLink Installation - new

TestLink setup will now attempt to setup the database:

Creating connection to Database Server: OK!
OK!
Checking MySQL version: OK! (4.1.10-nt >= 4.1.0)


Selecting database `TestLink`: OK!
Creating Testlink DB user `admin`: OK! (ok - user_exists)
Processing:sql/testlink_create_tables.sql

Importing StartUp data OK!
Writing configuration file:
Notice: Undefined variable: user_host in c:\\\\inetpub\\\\wwwroot\\\\testlink\\\\testlink\\\\install\\\\installNewDB.php on line 472
Failed!

TestLink couldn\\\'t write the config file. Please copy the following into the ../config_db.inc.php file:
Once that\\\'s been done, you can log into TestLink by pointing your browser at your TestLink site.
I have now installed testlink 1.6.1.But even after that I am getting the same error message.Also there is no config_db.inc.php file in the testlink directory.I login to the testlink website using http://localhost/testlink/login.php.After this it asks for database name,database login,database pwd.And on entering all these info and agreeing to the terms and conditions displays the error message.
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

I guess that you are using linux/unix and installation script has not rights to create the file testlink/config_db.inc.php.
You must allow it by chmod command or create the file manually. E.g.

{?php
// Automatically Generated by TestLink Installer
define(\\\'DB_TYPE\\\', \\\'mysql\\\');
define(\\\'DB_USER\\\', \\\'testlinker\\\');
define(\\\'DB_PASS\\\', \\\'testlinker\\\');
define(\\\'DB_HOST\\\', \\\'localhost\\\');
define(\\\'DB_NAME\\\', \\\'tldev1\\\');
?}

(without backslash)
Alinda
TestLink user
Posts: 2
Joined: Thu Aug 09, 2007 8:34 am

Did you settle this problem?

Post by Alinda »

I met this trouble,too.
I install my testlink on IIS+php5.2.1+MySQL5.0.37 on windows xp.
I don't know how to chomd the rights on the windows xp.
Alinda
TestLink user
Posts: 2
Joined: Thu Aug 09, 2007 8:34 am

Re: Did you settle this problem?

Post by Alinda »

Alinda wrote:I met this trouble,too.
I install my testlink1.6.2 on IIS+php5.2.1+MySQL5.0.37 on windows xp.
I don't know how to chomd the rights on the windows xp.
Post Reply