


This is needed if you are using the nginx web server instead of Apache. Note that some supported Linux distros default to PHP 7.1 or earlier, which is not supported for the latest version of the PHP drivers for SQL Server - please see the notes at the beginning of each section to install PHP 7.4 or 8.0 instead.Īlso included are instructions for installing the PHP FastCGI Process Manager, PHP-FPM, on Ubuntu. You may need to run pecl channel-update first. The following instructions install PHP 8.1 by default using pecl install, if the PHP 8.1 packages are available. For an explanation of extension loading and why we do not add the extensions to php.ini, see the section on loading the drivers. These instructions advise installing the drivers using PECL, but you can also download the prebuilt binaries from the Microsoft Drivers for PHP for SQL Server Github project page and install them following the instructions in Loading the Microsoft Drivers for PHP for SQL Server.

#CAN I INSTALL MICROSOFT SQL SERVER ON MAC HOW TO#
The following instructions assume a clean environment and show how to install PHP 8.1, the Microsoft ODBC driver, the Apache web server, and the Microsoft Drivers for PHP for SQL Server on Ubuntu, RedHat, Debian, Suse, Alpine, and macOS. Linux and macOS Installation Tutorial for the Microsoft Drivers for PHP for SQL Server
