- Copy the matching php_sqlsrv and php_pdo_sqlsrv DLLs into the PHP ext folder (run php -i to see extension_dir).
- Add extension= lines for both files in php.ini.
- On Linux, load pdo_sqlsrv after pdo (e.g. a 30-pdo_sqlsrv.ini file).
- Restart Apache or the web server.
- Check with phpinfo() or php --ri pdo_sqlsrv that the driver shows up.
Написано MuADMINS по источникуNot verified
Microsoft Learn · 2026-09-17