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

Requirements

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

FREETDS

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

PHP

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

http://www.freetds.org/userguide/php.htm

http://www.phpbuilder.com/columns/alberto20000919.php3?page=3 (Alternate method with source code)

Last Updated on Friday, 25 April 2008 14:43