hendraspt
hendraspt

Reputation: 969

"Could not find the driver" Error. How to configure PHP with SQL Server in IIS 7?

I have a PHP website using SQL Server as the database. I want to put it on the windows server. The server using IIS 7. I have a problem to run my website, when I try to login I always get an error :

PDOException in Connector.php line 55: could not find driver

I did put the pdo sql driver in my php ext. and I already registered that in php.ini but I still got that error.
enter image description here

And in my phpinfo() I could not find the "sqlsrv" words at all. Do you know why and how to fix this?

Upvotes: 0

Views: 1173

Answers (1)

alpakyol
alpakyol

Reputation: 2459

If you are using IIS for PHP, you should load dlls with nts (non-thread safe) version.

php_sqlsrv_56_nts.dll
php_pdo_sqlsrv_56_nts.dll

Upvotes: 1

Related Questions