Installation of PHP Driver for SQL Server (sqlsrv
and/or pdo_sqlsrv
PHP extensions) can be done following the next steps:
- Based on Microsoft PHP Drivers for SQL Server Support Matrix download appropriate version of this driver. In your case – version 5.2 or 5.3 (32-bit or 64-bit also depends on PHP version).
- Download and install an appropriate ODBC driver – see System Requirements for the Microsoft Drivers for PHP for SQL Server
- Load PHP Driver for SQL Server as PHP extension.
- Restart Apache
Check the configuration with <?php phpinfo();?>
. There should be a section with name pdo_sqlsrv
(if you use PDO) and/or sqlsrv
(without PDO).