how to install "pdo_sqlsrv" pkg in freebsd

hello there,
I recently installed apache24, php72 on a new jail.. my web application accesses remote mssql db in my local network.. can some one please suggest me how can i get php extension "pdo_sqlsrv" pkg


Thanks & Regards,
Abdul Aziz
 
Hi,

Code:
$ pkg search pdo_sql
php71-pdo_sqlite-7.1.29        The pdo_sqlite shared extension for php
php72-pdo_sqlite-7.2.18        The pdo_sqlite shared extension for php
php73-pdo_sqlite-7.3.5         The pdo_sqlite shared extension for php
$

Is it what you looking for?
 
Hi,

Code:
$ pkg search pdo_sql
php71-pdo_sqlite-7.1.29        The pdo_sqlite shared extension for php
php72-pdo_sqlite-7.2.18        The pdo_sqlite shared extension for php
php73-pdo_sqlite-7.3.5         The pdo_sqlite shared extension for php
$

Is it what you looking for?
Uh...... the OP specifically mentioned "remote mssql".
What's that got to do with sqlite?
As for the OP's Problem: he probably needs FreeTDS:
 
Uh...... the OP specifically mentioned "remote mssql".
What's that got to do with sqlite?
As for the OP's Problem: he probably needs FreeTDS:


thanks for the suggesion .. i was not aware of FreeTDS.... I just created a vm with ubuntu as a temporary solution for my my web app to run . i will try freeTDS
 
PDO_sqlsrv is not available for FreeBSD AFAIK. This PECL extension depends on some MS libraries which are provided for Windows and Linux but not for FreeBSD.
I tried to build PDO_sqlsrv for PHP 7.1 about a year ago.

If you need to access MSSQL you can build php72-pdo_dblib from ports and enable support for MSSQL


The prebuilt package does not have it enabled.
 
Back
Top