Setup PHP PDO (SQLSRV) Drivers on Ubuntu 16.04 to connect to MS SQL SERVER

I setup Ubuntu 16.04 LTS server and having trouble getting PHP 7.0 to connect to MS SQL Server through PDO.

I want to connect using the PDO class using sqlsrv as the database driver type (not using dblib/FreeTDS drivers or any non PDO method of connecting, such as mssql_connect).

I followed this article with errors and feel like I almost completed the process, but need someone with more knowledge to get it working. It's not necessary to follow this article, please do it your own way if necessary.

[login to view URL]

When I try to construct PDO and connect I received the error:

" PDOException: could not find driver ".

I know my code is not the issue as it's worked reliably using sqlsrv on Windows and dblib on Ubuntu.

The deliverable on this will be:

[login to view URL] step by step instructions on how to get it working on a fresh install of Ubuntu 16.04 LTS, using only minimal amount of installed software (e.g. apache, php 7.0, necessary drivers). So that I can use the same instructions to get it working on my server. A simple PHP script showing successful connection like this:

$c = new PDO("sqlsrv:Server=localhost;Database=testdb", "UserName", "Password");

I can provide root access to a clean Ubuntu install for a few days if required.

Квалификация: Apache, Linux, PHP

Показать больше ubuntu 16.04, freelancer on ubuntu 16.04, ms sql server setup, configuring php ms sql server iis windows server, shindig setup php, setup php projects mac, fedora setup php, setup php motion website, simple xml soap setup php, form setup php, setup php fedora, pay setup php mafia game, setup php webform attachment godaddy, setup php server 2003, setup php server verification email

О работодателе:
( 1 отзыв ) Dallas, United States

ID проекта: #16801752

6 фрилансеров(-а) в среднем готовы выполнить эту работу за $31


A proposal has not yet been provided

$30 USD за 1 день
(173 отзывов(-а))

Hi, I can help you to install PHP/PDO driver on your ubuntu 16.4 let me know ssh details of your server will start asap. Thanks

$19 USD за 0 дней(-я)
(64 отзывов(-а))

I can help you to setup PHP PDO on latest ubuntu server and connect to ms sql server. please kindly contact me for more further discussion.

$30 USD за 1 день
(37 отзывов(-а))
$25 USD за 1 день
(3 отзывов(-а))

Hello I have MS SQL Server 2017 installed on Windows 10 and Ubuntu virtual machine. Please call me so that I can get started right away. Thanks.

$55 USD за 2 дней(-я)
(1 отзыв)

Hey! I am interested in your [login to view URL] send me so that we can discuss more! Relevant Skills and Experience I have fully skill in this work as you need.

$25 USD за 1 день
(0 отзывов(-а))