Skip to Content.
Sympa Menu

freetds - [freetds] OpenBSD, FreeTDS and PHP

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Ales Golob <ales.golob AT ceris.si>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: [freetds] OpenBSD, FreeTDS and PHP
  • Date: Thu, 02 Jun 2005 15:57:17 +0200

Hi!

I have a problem using PHP-4.3.11 with the mssql extension on OpenBSD 3.7, running FreeTDS 0.62.4
All the scripts that worked fine on a Linux server now return errors like:

*Warning*: mssql_connect(): Unable to connect to server: server1 in */htdocs/secure/ke/include/db.php* on line *33

*Line 33 contains a mssql_connect() call, with proper parameter. the server "olmajti" is configured correctly in
/etc/freetds.conf. Using tsql fails also:

# tsql -S server1 -U user1
locale is "C"
using default charset "ISO-8859-1"
Password:
src/tds/login.c: tds_connect: 192.168.0.104:1433: Connection refused
Msg 20009, Level 9, State 0, Server OpenClient, Line 0
Server is unavailable or does not exist.
There was a problem connecting to the server

When using a different server, tsql connection works, but the connection from php still doesen't.
The servers are both MS SQL 2000.

I compiled the php mssql.so module from the same source tree as the original PHP packages,
is there any platform incompatibilities or why is there only sybase-ct available as a package
for OpenBSD?

--
Ales Golob, razvijalec aplikacij
CERIS, Center za razvoj izkaznic in sistemov

Gospodinjska ulica 8, Ljubljana
Tel.: (01) 500 40 00
Fax: (01) 500 40 40
E-mail: ales.golob AT ceris.si
Splet: http://www.ceris.si





Archive powered by MHonArc 2.6.24.

Top of Page