Please see the procedure below,
wget -c http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz tar -xzf freetds-stable.tgz cd freetds-0.82/ ./configure --prefix=/opt/freetds --enable-msdblib --with-openssl make 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
--with-mssql=/opt/freetds
Now compile php using /scripts/easyapache
After the compilation create a phpinfo page and test it.