| title | Step 1: Configure Environment for PHP | |
|---|---|---|
| description | Step 1 of this getting started guide involves installing PHP, the Microsoft ODBC Driver for SQL Server, and configuring your development environment. | |
| author | David-Engel | |
| ms.author | davidengel | |
| ms.reviewer | randolphwest | |
| ms.date | 01/02/2026 | |
| ms.service | sql | |
| ms.subservice | connectivity | |
| ms.topic | how-to | |
| ms.custom |
|
[!INCLUDE Driver_PHP_Download]
-
Identify which version of the PHP driver to use, based on your environment. For more information, see System requirements for the Microsoft Drivers for PHP for SQL Server.
-
Download and install the Microsoft Drivers for PHP for SQL Server.
-
Download and install the ODBC Driver for SQL Server.
-
Configure the PHP driver and web server for your specific operating system.
- To configure loading the PHP driver, see Loading the Microsoft Drivers for PHP for SQL Server.
- To configure IIS to host PHP applications, see Download the Microsoft Drivers for PHP for SQL Server.
To configure loading the PHP driver and configure your web server to host PHP applications, see Linux and macOS Installation Tutorial for the Microsoft Drivers for PHP for SQL Server.