linux ubuntu microsoft ODBC  connect

unixODBC developer package.

sudo apt-get update
sudo apt-get install mssql-tools unixodbc-dev
`</pre><pre>`sudo apt-get install freetds-common freetds-bin unixodbc php7.3-sybase`</pre>

ubuntu mssql driver

[https://www.microsoft.com/en-us/sql-server/developer-get-started/php/ubuntu/step/2.html](https://www.microsoft.com/en-us/sql-server/developer-get-started/php/ubuntu/step/2.html)

[](http://selmantunc.tumblr.com/tagged/magento/page/3)[http://selmantunc.tumblr.com/post/180306101827/how-to-install-magento-with-nginx-on-ubuntu-1804](http://selmantunc.tumblr.com/post/180306101827/how-to-install-magento-with-nginx-on-ubuntu-1804)

[https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-2017](https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-2017)

[https://bitbucket.org/janihur/devoops/wiki/How_To_Connect_Azure_SQL_Database_From_Ubuntu](https://bitbucket.org/janihur/devoops/wiki/How_To_Connect_Azure_SQL_Database_From_Ubuntu)

[https://docs.microsoft.com/tr-tr/sql/azure-data-studio/download?view=sql-server-2017](https://docs.microsoft.com/tr-tr/sql/azure-data-studio/download?view=sql-server-2017)

[http://sqlserveronlinuxbackup.com/get-microsoft-azure-sql-server-linux-ubuntu-free/](http://sqlserveronlinuxbackup.com/get-microsoft-azure-sql-server-linux-ubuntu-free/)

[ ubuntu php version change https://thishosting.rocks/install-php-on-ubuntu/](https://thishosting.rocks/install-php-on-ubuntu/)

## **PEcl Install**
<pre>`
sudo apt-get install php-pear php7.3-dev

sudo pecl install sqlsrv

sudo pecl install pdo_sqlsrv

sudo bash -c "echo extension=sqlsrv.so > /etc/php/7.3/cli/conf.d/sqlsrv.ini"

sudo bash -c "echo extension=sqlsrv.so > /etc/php/7.3/fpm/conf.d/sqlsrv.ini"

sudo bash -c "echo extension=pdo_sqlsrv.so > /etc/php/7.3/fpm/conf.d/pdo_sqlsrv.ini"

sudo bash -c "echo extension=pdo_sqlsrv.so > /etc/php/7.3/cli/conf.d/pdo_sqlsrv.ini"

PHP 7.3 MAKE

pecl download sqlsrv

tar xvzf sqlsrv-5.6.0.tgz

cd sqlsrv-5.6.0/

phpize

./configure –with-php-config=/usr/bin/php-config

make

sudo make install

LİNK

IMPORTANT

https://github.com/Microsoft/msphpsql/issues/751