Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to install mssql.so in PHP  (Read 3920 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
How to install mssql.so in PHP
« on: October 06, 2014, 10:20:19 pm »
Step 1. yum install unixODBC unixODBC-devel

Step 2. Install Freedts:

Code: [Select]
cd /usr/local/src
wget http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz
tar zfvx freetds-stable.tgzcd freetds-*;
./configure --prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdblib --enable-dbmfix --with-gnu-ld; make ; make install
echo "--with-mssql=/usr/local/freetds" >> /var/cpanel/easy/apache/rawopts/all_php5
touch /usr/local/freetds/lib/libtds.a
touch /usr/local/freetds/include/tds.h
ln -s /usr/local/freetds/lib/  /usr/local/freetds/lib64

Step 3. Enable MSSQL.SO

Run EasyApache and select MySQL and MySQLi support.

# php --info |grep  "mssql"
MSSQL Support => enabled

Or view in PHPINFO File.

Thats it.........