Hi,

I am Dipesh from BG Broadband, India. I am working on linux-php. I am

trying to configure freetds with php, but it does not allow me to connect to

mssql server 2000.

The problem is not related to login. I can ping the server.Using command

'tsql' i can connect to the database. So the problem must be with the

configuration of freetds with php. It doesn't work with perl too.

tsql -H "host" -p 1433 -U dips

worked

I have tried various version of freetds like 0.53 and also 0.61.

I have to use version 0.53 only but I just tried 0.61 so please give

solution regarding this version only.

With 0.53 I am getting error as

connect: Connection refused

DB-Library: Login incorrect

With 0.61 I am getting error as

src/tds/login.c: tds_connect: 172.16.3.36:4000: Connection refused

I have configured freetds with the following options

./configure --prefix=/usr/local/freetds0.53 --with-tdsver=7 --enable-msdblib

make

make install

Also I have configred PHP with the following options

'./configure' '--with-apxs=/usr/local/apache/bin/apxs'

'--with-sybase=/usr/local/freetds0.53/' '--with-odbc' '--with-mysql'

'--with-ldap' '--with-pgsql'

'--with-oci8=/home/oracle/m01/app/oracle/product/8.1.7/' '--with-gbdm'

'--enable-dbase' '--enable-calendar' '--enable-bcmath' '--enable-filepro'

'--enable-track-vars' '--enable-force-cgi-redirect'

make

make install

Then I copied the php.ini-dist file to /usr/local/lib/php.ini and then

restarted apache.

But I can't connect to it and the above error was shown.

So please help me and thanx in advance.

Suggestions are appreciated...............

Regards,

Dipesh

BG Broadband, India



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to