Enabling php mssql driver on shared hosting

Avatar
  • Answered
I am a customer of a shared *launch* hosting plan and I would like to ask how can I enable database connection to a remote Microsoft SQL Server through php. It seems that the mssql php extension is not enabled by default.

Editing the php.ini file and uncommenting the line:
extension=php_mssql.dll

didn't work either and I suppose this makes sense, since the hosting is running on linux.

Do inmotionhosting servers have freeTDS running, which is required for using mssql, or any other tips on how to make ms sql server connection work through php?
Avatar
JacobIMH
Hello nbasili, and thanks for your question. Unfortunately the ability to connect to a MSSQL database from PHP is not available on our shared-hosting packages. This would require Apache/PHP being re-compiled with the MSSQL extension and also typically the FreeTDS library being installed. This is something that can be done on our VPS (Virtual Private Servers) that are talked about on the following page: VPS Hosting packages Please let us know if you have any further questions at all. - Jacob