Install MSSQL Support for PHP
Written by Sam Moffatt   
Sunday, 10 June 2007 01:08


You will need the FreeTDS package and the copy of PHP source.


Get FreeTDS and unzip.
To compile and install FreeTDS use the following:
$ ./configure --with-tdsver=4.2 --enable-msdblib --enable-dbmfix --with-gnu-ld --enable-shared --enable-static --prefix=/usr/local/freetds
$ make
# make install


Append the following to the existing configure options: "--with-sybase=/usr/local/freetds"
"./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --with-zlib --with-gd --with-dbase --with-pgsql=/usr/local/postgres --with-sybase=/usr/local/freetds"

$ make
# make install

REFERENCES (Alternate method with source code)

Last Updated on Friday, 25 April 2008 14:43