PHP Linux Drivers for Microsoft SQL Server

Dear Experts,

First, I hope my question doesn't get flagged as asking for an opinion. I have looked high and low for a definitive answer, and have yet to find one. Please give this consideration.

I have a unique opportunity to build a middle tier from scratch. Clean, brand new servers. The servers are running the current version of Ubuntu Linux. I have developed a framework of RESTful calls and now need to connect them to MS SQL Server 2012 on the back end.  I have been connecting to MS SQL, with perfect success, via the FreeTDS/mssql combo for ~10 years. Perhaps that "is" the best solution?

Microsoft develops and maintains drivers for Windows, which can be sourced here:

But, when it comes to Linux, the waters muddy considerably. I know the mssql.dll library for Windows has been deprecated, but I also see people comment the mssql library for Linux and Windows are not the same thing.

So, my question is simple - what is the best maintainable, and supported, solution for connecting PHP via Linux to Microsoft SQL Server today?

Thank you in advance.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
The Only supported driver that I know of is here  but it is Not a PHP driver and it is Not for Ubuntu but for Redhat and Suse Linux.  Freetds can be considered unsupported since the last date on their web site is 2011 and the last version is for SQL Server 2005.  That is what '' on Linux uses.  PHP 5.3 or greater on Windows requires the 'sqlsrv' driver.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mwheeler_fsdAuthor Commented:
Thank you again Dave! You'd helped me with a previous question regarding encryption. Incidentally, that was very helpful in solving the issue.

It would be nice to have more alternatives for PHP on Linux with MS SQL, but it seems this is it, at least for now.

Your help is greatly appreciated.

Dave BaldwinFixer of ProblemsCommented:
You're welcome.  Microsoft has waffled greatly on support for anything in Linux even though they did have a version of Unix at one time that they called Xenix.  After calling Linux 'evil' in about 2001, they came up with the MS SQL PHP driver a few years ago but Only in a Windows version.  I think someone using Redhat pressured them a great deal for the current ODBC driver.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.