Enabling php mssql driver on shared hosting

Category: Databases

nbasili
Asked:
2012-10-22 9:30 am EST

Hits: 743
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?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User

0

JacobIMH
Staff
9,968 Points
2012-10-22 9:42 am EST
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

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!