[freetds] Exceptoins are not picked up by FreeTDS from DB?(0.62.2)

Mauricio Rojas mrojas at buseslibac.cl
Fri Apr 2 12:43:30 EST 2004


Before you read this paper ...... please sorry, my english isn'y very good

Dear friend

I has been trayind to install freetds in red hat 8.0 to connect to windows2k
with sql server 2000 from last week, finally it's done. If someone have a
question below you can find details .

autoconf-2.54.tar
freetds-stable
httpd-2.0.49.tar
php-4.3.5.tar


rpm -e php (to see dependences)
rpm -e --allmatches php php-imap php-ldap (to uninstall php)

rpm -e httpd (to see dependences)

rpm -e --allmatches httpd mod_perl mod_python mod_ssl redhat-config-httpd
(to uninstall php)

tar xvfz httpd-2.0.49.tar.gz (uncompress httpd)

./configure --prefix=/usr/local/apache --enable-so --enable-cgi --enable-inf
o --enable-rewrite --enable-speling --enable-usertrack --enable-deflate --en
able-ssl --enable-mime-magic

make

make install

rpm -e --allmatches autoconf libtool (uninstall autoconf)

tar xvfz autoconf-2.54.tar.gz ( to install autoconf)

./configure

make

make install

tar xvfz freetds-stable.tgz (install freetds)

./configure --prefix=/usr/local/freetds --enable-msdblib --with-tdsver=8.0

make

make install

make clean

edit freetds.conf (uncommnet everuthings ,  nt domain = myworkgroup and
NameServer = IP )

test comunication with tsql -H 192.168.1.2 -p 1433 -U USER  -P PASSWORD

test comunication  tsql -S MyServer2k -U USER  -P PASSWORD

tar xvfz php-4.3-5.tar.gz (install php)

./configure --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/apac
he/php --with-config-file-path=/usr/local/apache/php --enable-force-cgi-redi
rect --disable-cgi --with-zlib --with-gettext --with-gdbm --with-mssql=/usr/
local/freetds

make

make install

cp -p .libs/libphp4.so /usr/local/apache/modules

cp -p php.ini-recommended /usr/local/apache/php/php.ini

edit /usr/local/apache/conf/httpd.conf

Verify in httpd.conf     LoadModule php4_module modules/libphp4.so
ServerName 192.168.1.5:80 AddType application/x-httpd-php php AddType
application/x-httpd-php-source phps DirectoryIndex index.php

/usr/local/apache/bin/apachectl start

test your page with command mssql_connect()



Any question here i am




More information about the FreeTDS mailing list