macOS php sqlsrv drivers installed but throwing unknown exception

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


macOS php sqlsrv drivers installed but throwing unknown exception



I'm developing PHP apps and now with GIT and all we're supposed to be running locally the apps we develop, while connecting to the company's SQL server for data. I can otherwise see this SQL server without any problems (from Navicat etc).



(I tried installing XAMPP first, never got it to see the sqlsrv / pdo_sqlsrv drivers, tried these guides as well with a "clean" apache install -and then some more- and in the end I did a clean install of macOS, did these guides from scratch again and here we are now).



So I followed the steps described here
https://www.microsoft.com/en-us/sql-server/developer-get-started/php/mac/

and here
https://docs.microsoft.com/en-us/sql/connect/php/installation-tutorial-linux-mac?view=sql-server-2017#installing-the-drivers-on-macos-el-capitan-sierra-and-high-sierra

which are the official guides to going about my task. Apart from that, I configured Apache with SSL certificates and PHP 7.2.8 and everything else works fine.



phpinfo() even shows me that sqlsrv and pdo_sqlsrv load ok.



And then I launch my application, where I get this error message when I try to open a connection to the server:



Fatal error: sqlsrv_connect: Unknown exception caught. in [file] on line [line]



I'm running version 5.3.0 of both sqlsrv and pdo_sqlsrv pecl packages, so I should be past the problems mentioned about version 4.1.7 or before that.



Any ideas?



Thanks









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

O,OWV,2 5KZbb8oAxV4CxKNk3a UQdDq70dV4ZTYxrNq,q4YL3Y4RfQDGJNyv7KPlXH8u gVUH1 uNU3RSI,WKuAM5BMuVyD,0 4CX
cTfN,FDkhgn8nkM kP0mAww1UD2e8B1ZQkHr5sOP7YbF18JS5oLnhOT2zGXd8AmOdv1dKS8ztAEf8sGo3RJVh y9QzSw 21ZeX

Popular posts from this blog

Visual Studio Code: How to configure includePath for better IntelliSense results

Spring cloud config client Could not locate PropertySource

Makefile test if variable is not empty