You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+3-4
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ Updated PECL release packages. Here is the list of updates:
8
8
9
9
### Added
10
10
- Support for PHP 8.1 RC 1
11
-
- Support for Ubuntu 21.04
11
+
- Support for Ubuntu 21.04 and Alpine 3.13
12
12
- Support for Apple M1 ARM64 hardware (requires [MS ODBC Driver 17.8+](https://docs.microsoft.com/sql/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos?view=sql-server-ver15)
13
-
- Feature Request [#795](https://github.com/microsoft/msphpsql/issues/795) - adding support for Table-valued parameters
13
+
- Feature Request [#795](https://github.com/microsoft/msphpsql/issues/795) - adding support for [Table-valued parameters](https://github.com/Microsoft/msphpsql/wiki/Features#tvp)
14
14
15
15
### Removed
16
16
- Support for Ubuntu 16.04
@@ -20,9 +20,8 @@ Updated PECL release packages. Here is the list of updates:
20
20
- Pull request [#1251](https://github.com/microsoft/msphpsql/pull/1251) - simplified implementations of last insert id and quote
21
21
- Issue [#1258](https://github.com/microsoft/msphpsql/issues/1258) - updated pdo_sqlsrv_get_driver_methods as per documentation - pull request [#1259](https://github.com/microsoft/msphpsql/pull/1259)
22
22
- Pull request [#1260](https://github.com/microsoft/msphpsql/pull/1260) - cleaned up redundant code
23
-
- Pull request [#1262](https://github.com/microsoft/msphpsql/pull/1262) - simplified parse_param_array in sqlsrv
24
-
- Pull request [#1262](https://github.com/microsoft/msphpsql/pull/1262) - simplified parse_param_array in sqlsrv
25
23
- Issue [#1261](https://github.com/microsoft/msphpsql/issues/1261) - simplified get_field_as_string and made it more robust - pull request [#1265](https://github.com/microsoft/msphpsql/pull/1265)
24
+
- Pull request [#1262](https://github.com/microsoft/msphpsql/pull/1262) - simplified parse_param_array in sqlsrv
26
25
- Pull request [#1267](https://github.com/microsoft/msphpsql/pull/1267) - replaced the obsolete MACRO ZVAL_NEW_ARR with array_init
Copy file name to clipboardexpand all lines: Linux-mac-install.md
+31-14
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# Linux and macOS Installation Tutorial for the Microsoft Drivers for PHP for SQL Server
2
-
The following instructions assume a clean environment and show how to install PHP 8.0, the Microsoft ODBC driver, the Apache web server, and the Microsoft Drivers for PHP for SQL Server on Ubuntu 16.04, 18.04, and 20.04, RedHat 7 and 8, Debian 9 and 10, Suse 12 and 15, Alpine 3.11 and 3.12, and macOS 10.14, 10.15, and 11.0. 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](https://github.com/Microsoft/msphpsql/releases) Github project page and install them following the instructions in [Loading the Microsoft Drivers for PHP for SQL Server](https://docs.microsoft.com/sql/connect/php/loading-the-php-sql-driver). For an explanation of extension loading and why we do not add the extensions to php.ini, see the section on [loading the drivers](https://docs.microsoft.com/sql/connect/php/loading-the-php-sql-driver#loading-the-driver-at-php-startup).
2
+
The following instructions assume a clean environment and show how to install PHP 8.0, 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. 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](https://github.com/Microsoft/msphpsql/releases) Github project page and install them following the instructions in [Loading the Microsoft Drivers for PHP for SQL Server](https://docs.microsoft.com/sql/connect/php/loading-the-php-sql-driver). For an explanation of extension loading and why we do not add the extensions to php.ini, see the section on [loading the drivers](https://docs.microsoft.com/sql/connect/php/loading-the-php-sql-driver#loading-the-driver-at-php-startup).
3
3
4
4
The following instructions install PHP 8.0 by default using `pecl install`, if the PHP 8.0 packages are available. You may need to run `pecl channel-update pecl.php.net` first. 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 7.3 instead.
5
5
@@ -9,15 +9,15 @@ While these instructions contain commands to install both SQLSRV and PDO_SQLSRV
9
9
10
10
## Contents of this page
11
11
12
-
-[Installing the drivers on Ubuntu 16.04, 18.04, and 20.04](#installing-the-drivers-on-ubuntu-1604-1804-and-2004)
12
+
-[Installing the drivers on Ubuntu](#installing-the-drivers-on-ubuntu)
13
13
-[Installing the drivers with PHP-FPM on Ubuntu](#installing-the-drivers-with-php-fpm-on-ubuntu)
14
-
-[Installing the drivers on Red Hat 7 and 8](#installing-the-drivers-on-red-hat-7-and-8)
15
-
-[Installing the drivers on Debian 9 and 10](#installing-the-drivers-on-debian-9-and-10)
16
-
-[Installing the drivers on Suse 12 and 15](#installing-the-drivers-on-suse-12-and-15)
17
-
-[Installing the drivers on Alpine 3.11 and 3.12](#installing-the-drivers-on-alpine-311-and-312)
18
-
-[Installing the drivers on macOS Mojave, Catalina and Big Sur](#installing-the-drivers-on-macos-mojave-catalina-and-big-sur)
14
+
-[Installing the drivers on Red Hat](#installing-the-drivers-on-red-hat)
15
+
-[Installing the drivers on Debian](#installing-the-drivers-on-debian)
16
+
-[Installing the drivers on Suse](#installing-the-drivers-on-suse)
17
+
-[Installing the drivers on Alpine](#installing-the-drivers-on-alpine)
18
+
-[Installing the drivers on macOS](#installing-the-drivers-on-macos)
19
19
20
-
## Installing the drivers on Ubuntu 16.04, 18.04, and 20.04
20
+
## Installing the drivers on Ubuntu
21
21
22
22
> [!NOTE]
23
23
> To install PHP 7.4 or 7.3, replace 8.0 with 7.4 or 7.3 in the following commands.
To test your installation, see [Testing your installation](#testing-your-installation) at the end of this document.
129
129
130
-
## Installing the drivers on Red Hat 7 and 8
130
+
## Installing the drivers on Red Hat
131
131
132
132
### Step 1. Install PHP
133
133
@@ -193,7 +193,7 @@ sudo apachectl restart
193
193
```
194
194
To test your installation, see [Testing your installation](#testing-your-installation) at the end of this document.
195
195
196
-
## Installing the drivers on Debian 9 and 10
196
+
## Installing the drivers on Debian
197
197
198
198
> [!NOTE]
199
199
> To install PHP 7.4 or 7.3, replace 8.0 in the following commands with 7.4 or 7.3.
@@ -245,7 +245,7 @@ sudo service apache2 restart
245
245
```
246
246
To test your installation, see [Testing your installation](#testing-your-installation) at the end of this document.
247
247
248
-
## Installing the drivers on Suse 12 and 15
248
+
## Installing the drivers on Suse
249
249
250
250
> [!NOTE]
251
251
> In the following instructions, replace `<SuseVersion>` with your version of Suse - if you are using Suse Enterprise Linux 15, it will be SLE_15_SP1 or SLE_15_SP2. For Suse 12, use SLE_12_SP4 (or above if applicable). Not all versions of PHP are available for all versions of Suse Linux - please refer to `http://download.opensuse.org/repositories/devel:/languages:/php` to see which versions of Suse have the default version PHP available, or check `http://download.opensuse.org/repositories/devel:/languages:/php:/` to see which other versions of PHP are available for which versions of Suse.
To test your installation, see [Testing your installation](#testing-your-installation) at the end of this document.
294
294
295
-
## Installing the drivers on Alpine 3.11 and 3.12
295
+
## Installing the drivers on Alpine
296
296
297
297
> [!NOTE]
298
298
> The default version of PHP is 7.3. PHP 7.4 or above may be available from testing or edge repositories for Alpine. You can instead compile PHP from source.
### Step 4. Install Apache and configure driver loading
385
+
386
+
> [!NOTE]
387
+
> The latest macOS 11.0 Big Sur comes with Apache 2.4 pre-installed, but Apple has also removed some required scripts. The solution is to install Apache 2.4 via Homebrew and then configure it, but this is out of scope for this installation guide, so please check Apache or Homebrew for detailed instructions.
0 commit comments