How to enable PHP Mssql support in cPanel server

Please see the procedure below,

wget -c
tar -xzf freetds-stable.tgz
cd freetds-0.82/
./configure --prefix=/opt/freetds --enable-msdblib --with-openssl 
make install

If it it is a 64 bit server then make the following softlink

ln -s /opt/freetds/lib/ /opt/freetds/lib64

Now add the following line to /var/cpanel/easy/apache/rawopts/all_php5


Now compile php using /scripts/easyapache

After the compilation create a phpinfo page and test it.