Install the Microsoft SQL Server PHP driver on debian

debian on driver PHP Server SQL Microsoft the Install

Install FreeTDS and the PHP MS SQL extension

sudo apt-get install freetds-common freetds-bin unixodbc php5-sybase

Note: That is correct, the MS SQL extension is in the “php5-sybase” package.


Configure FreeTDS

sudo nano /etc/freetds/freetds.conf

Add this at the end of the file:


host =

port = 1433

tds version = 8.0

Saving the comment

Add comment

Required Please choose another name

  • Comment
  • Preview