TestLink Login Problem - IIS

The release related discussions, plans and questions.
Locked
lakshmi
TestLink user
Posts: 5
Joined: Wed Oct 24, 2007 6:58 am

TestLink Login Problem - IIS

Post by lakshmi »

While installing the TestLink 1.7 under PHP5 and MYSQL4.3 we got the following error

Creating Testlink DB user `root`: OK! (ok - user_exists ok - grant assignment)
Processing:sql/mysql/testlink_create_tables.sql

Importing StartUp data OK!
Writing configuration file: Failed!

TestLink couldn't write the config file. Please copy the following into the ../config_db.inc.php file:
<?php
// Automatically Generated by TestLink Installer
define('DB_TYPE', 'mysql');
define('DB_USER', 'root');
define('DB_PASS', 'laxmi');
define('DB_HOST', 'localhost');
define('DB_NAME', 'TestLink');
?>Once that's been done, you can log into TestLink by pointing your browser at your TestLink site.



So I created a file with the name config_db.inc.php in TestLINK dir

and i tried to login through broeswer iam getting the following errors

Warning: Smarty::include(c:\Inetpub\wwwroot\testlink\gui\templates_c\\%%6A^6A5^6A537DD8%%login.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in c:\Inetpub\wwwroot\testlink\third_party\smarty\Smarty.class.php on line 1247

Warning: Smarty::include() [function.include]: Failed opening 'c:\Inetpub\wwwroot\testlink\gui\templates_c\\%%6A^6A5^6A537DD8%%login.tpl.php' for inclusion (include_path='.;c:\php\includes;.;c:\Inetpub\wwwroot\testlink\lib\functions\;') in c:\Inetpub\wwwroot\testlink\third_party\smarty\Smarty.class.php on line 1247


PLease help me in this to continue on TestLink
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

what OS are you using ?
seems to be right problems at file system level
lakshmi
TestLink user
Posts: 5
Joined: Wed Oct 24, 2007 6:58 am

Post by lakshmi »

We are using windoes 2000
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

OK, Have you tested grants at filesystem level for user used to run web server service ???

I'm working on XP, with apache without problems
lakshmi
TestLink user
Posts: 5
Joined: Wed Oct 24, 2007 6:58 am

Post by lakshmi »

I am not using web Services

We are using the following configuration

1) PHP 5.1
2) IIS 6.0
3) MY SQL 4.3
4) OS: Windows 2000
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

web server service -> web server Windows service
greenmonkey777
TestLink user
Posts: 4
Joined: Mon Aug 25, 2008 7:03 pm

fix

Post by greenmonkey777 »

Well, this was posted almost a year ago, but since this forum seems to have a tendencey for threads to simply die without a solution I will post what I found.

I had the same problem running PHP 5, mySQL 5, and Windows Server 2003 WE, using IIS. To fix this error make sure that the IIS_WPG user has NTFS WRITE access to your testlink install directory. This will allow testlink to install without error.
greenmonkey777
TestLink user
Posts: 4
Joined: Mon Aug 25, 2008 7:03 pm

Post by greenmonkey777 »

Oops! Forgot one thing. This will fix the instillation error, but in my case it did not fix the Smarty error. Alll recommendations I have found suggest that it is a rights issue with the program. But, at this point I have tried giving all relative acocunts write access and still recieve the smarty error.

If anyone can provide a fix for the smarty error it would be greatly apprechiated.

Thanks,
sfunk1x
TestLink user
Posts: 5
Joined: Mon Mar 31, 2008 5:32 pm

Post by sfunk1x »

I am currently seeing this same issue. I have the following configuration:

Win2k8 Web Server
IIS7
MySQL 5
PHP 5
IIS_USRS group has read/write (not FULL MODIFY) access to testlink root and all subfolders.

I receive the following errors:

PHP Warning: Smarty::include(C:\inetpub\wwwroot\testlink\gui\templates_c\\%%6A^6A5^6A537DD8%%login.tpl.php) [<a href='smarty.include'>smarty.include</a>]: failed to open stream: No such file or directory in C:\inetpub\wwwroot\testlink\third_party\smarty\Smarty.class.php on line 1247


PHP Warning: Smarty::include() [<a href='function.include'>function.include</a>]: Failed opening 'C:\inetpub\wwwroot\testlink\gui\templates_c\\%%6A^6A5^6A537DD8%%login.tpl.php' for inclusion (include_path='.;C:\php5\pear;.;C:\inetpub\wwwroot\testlink\lib\functions\') in C:\inetpub\wwwroot\testlink\third_party\smarty\Smarty.class.php on line 1247


Does anyone have any ideas on how I can move forward on this issue?

Thanks in advance,


Sean
sfunk1x
TestLink user
Posts: 5
Joined: Mon Mar 31, 2008 5:32 pm

Post by sfunk1x »

As per the FAQ, this error is described as the IIS_USR not having write access. For IIS6, this may certainly be the case. In IIS7 (Win Server 2008 Web Server Edition), there is no visible IIS_USR, only an IIS_USRS group.

Currently, I'm unsure of how to proceed. I'm guessing I just don't know how to 'view' the IIS_USR properly, or perhaps I haven't enabled it? The installation worked fine (aside from writing the config_db.inc.php file, which I did manually - testlink was able to create the testlink user in mysql and tables were inserted.

I'll keep searching and if I can figure this out I'll post the method in which to avoid this pitfall.
sfunk1x
TestLink user
Posts: 5
Joined: Mon Mar 31, 2008 5:32 pm

Post by sfunk1x »

The solution was to Full Control to the 'Users' group. I am now accessing Testlink just fine.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

>>> aside from writing the config_db.inc.php file
this is an indication of right problems on FILE System.
Anyway we will try to improve our diagnostic during installation
sfunk1x
TestLink user
Posts: 5
Joined: Mon Mar 31, 2008 5:32 pm

Post by sfunk1x »

fman wrote:>>> aside from writing the config_db.inc.php file
this is an indication of right problems on FILE System.
Anyway we will try to improve our diagnostic during installation
Most certainly. It was just confusing to me because I couldn't find the specific IIS7 generic user to assign write access to. I wouldn't say it's a probllem with Testlink, per se, just confusion with the usage of Server 2008. :D It would certainly help if ya'll included it in the documentation since it was just trial and error for me to figure it out, and finding that info anywhere on the internet is near impossible.

It's installed and working flawlessly for me now, though. Great work!
Locked