ADDING Microsoft SQL Server SUPPORT FOR PHP on RHEL4
one of our programmer needs to access microsoft sql server from our php server, so i have to reinstall php to add this support (php-mssql), here’s what i do :
1. download freetds from
ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz
2. build and install freetds :
$ tar xzfv freetds-stable.tgz
$ ls
$ cd freetds-0.64
$ ./configure –prefix=/usr/local/freetds –enable-msdblib
$ make
$ su -
$ make install
$make clean
3. build and install php
$ tar xjfv php-5.2.4.tar.bz2
$ cd php-5.2.4
$ ./configure –with-apxs2=/usr/local/apache2/bin/apxs –enable-magic-quotes –with-openssl –with-zlib –with-bz2 –enable-ftp –with-gd –enable-mbstring –with-mysql=/usr/include/mysql –with-mysqli=/usr/bin/mysql_config –with-freetype-dir –with-t1lib –with-jpeg-dir –with-mssql=/usr/local/freetds
$ make
$ su -
$ make install
$ make clean
4. check httpd.conf to make sure php5 module not loaded twice. then restart apache.






