From ffd9dbcc826130161d06c96e9c3c0a45f284fc34 Mon Sep 17 00:00:00 2001 From: yitam Date: Thu, 27 Apr 2017 16:02:33 -0700 Subject: [PATCH 1/4] Modified Readme for Mac section --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 80c47f4b..f98f2b77 100644 --- a/README.md +++ b/README.md @@ -82,9 +82,9 @@ This software has been compiled and tested under PHP 7.0.8 using the Visual C++ 3. Restart the Web server. ## Install (UNIX) -Following instructions shows how to install PHP 7.x, Microsoft ODBC driver, apache, and Microsoft PHP drivers on Ubuntu 15, 16, RedHat 7 and Mac OS X. To see how to get PHP SQLSRV drivers running on Debian, please visit [Wiki](https://github.com/Microsoft/msphpsql/wiki/Dockerfile-for-getting-pdo_sqlsrv-for-PHP-7.0-on-Debian-in-3-ways). Note that Debian is not officially supported and this instruction hasn't been tested in our test lab. +The following instructions assume a clean environment and show how to install PHP 7.x, Microsoft ODBC driver, apache, and Microsoft PHP drivers on Ubuntu 15, 16, RedHat 7 and Mac OS X. To see how to get PHP SQLSRV drivers running on Debian, please visit [Wiki](https://github.com/Microsoft/msphpsql/wiki/Dockerfile-for-getting-pdo_sqlsrv-for-PHP-7.0-on-Debian-in-3-ways). Note that Debian is not officially supported and this instruction hasn't been tested in our test lab. -### Step 1: Install PHP7 (unless already installed) +### Step 1: Install PHP7 (unless already installed) #### PHP 7.0 @@ -208,10 +208,8 @@ Following instructions shows how to install PHP 7.x, Microsoft ODBC driver, apac brew tap microsoft/mssql-preview https://github.com/Microsoft/homebrew-mssql-preview brew update - brew install unixodbc brew install msodbcsql brew install mssql-tools - brew install llvm --with-clang --with-clang-extra-tools brew install autoconf *Note: You need to make sure you install PHP 7+ before you proceed to step 3. The Microsoft PHP Drivers for SQL Server will only work for PHP 7+. @@ -222,7 +220,7 @@ Following instructions shows how to install PHP 7.x, Microsoft ODBC driver, apac sudo pecl install sqlsrv sudo pecl install pdo_sqlsrv -*Note: it installs the stable version, for specific version you should specify the version. For example, do `sudo pecl search sqlsrv` to search for the latest releases and `sudo pecl install sqlsrv-[version]` to install a specific version. +*Note: The first step is not required in Mac OS X. PECL installs the stable version when version is not specified. You may run `sudo pecl search sqlsrv` to search for the latest releases and `sudo pecl install sqlsrv-[version]` to install a specific version. Drivers are Mac-compatible starting from `4.1.7preview` release. ### Step 4: Install and Configure Apache From 0ce6b48aad926fae7e4389a8bb9806ac268fc327 Mon Sep 17 00:00:00 2001 From: yitam Date: Mon, 1 May 2017 11:21:04 -0700 Subject: [PATCH 2/4] changed php 7 title --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f98f2b77..9d44e7e0 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ This software has been compiled and tested under PHP 7.0.8 using the Visual C++ ## Install (UNIX) The following instructions assume a clean environment and show how to install PHP 7.x, Microsoft ODBC driver, apache, and Microsoft PHP drivers on Ubuntu 15, 16, RedHat 7 and Mac OS X. To see how to get PHP SQLSRV drivers running on Debian, please visit [Wiki](https://github.com/Microsoft/msphpsql/wiki/Dockerfile-for-getting-pdo_sqlsrv-for-PHP-7.0-on-Debian-in-3-ways). Note that Debian is not officially supported and this instruction hasn't been tested in our test lab. -### Step 1: Install PHP7 (unless already installed) +### Step 1: Install PHP7+ #### PHP 7.0 From fd83981e4a1440b5fd825488b0cd9e8d420c84ff Mon Sep 17 00:00:00 2001 From: yitam Date: Mon, 1 May 2017 11:48:18 -0700 Subject: [PATCH 3/4] removed restart terminal for Mac --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9d44e7e0..f92620fc 100644 --- a/README.md +++ b/README.md @@ -124,8 +124,7 @@ The following instructions assume a clean environment and show how to install PH brew install php70 --with-pear --with-httpd24 --with-cgi echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile -*Note: Restart the terminal if PHP(`php -v`) is not updated. - + source ~/.bash_profile #### PHP 7.1 @@ -158,7 +157,7 @@ The following instructions assume a clean environment and show how to install PH brew install php71 --with-pear --with-httpd24 --with-cgi echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile -*Note: Restart the terminal if PHP(`php -v`) is not updated. + source ~/.bash_profile ### Step 2: Install Prerequisites From 1ea6e7fb1c634bc22096b533e90aead87877cac1 Mon Sep 17 00:00:00 2001 From: yitam Date: Tue, 2 May 2017 13:13:39 -0700 Subject: [PATCH 4/4] moved comments up in Step 3 --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f92620fc..b50ac466 100644 --- a/README.md +++ b/README.md @@ -215,13 +215,12 @@ The following instructions assume a clean environment and show how to install PH ### Step 3: Install the Microsoft PHP Drivers for SQL Server +*Note: The first step is not required in Mac OS X. PECL installs the stable version when version is not specified. You may run `sudo pecl search sqlsrv` to search for the latest releases and `sudo pecl install sqlsrv-[version]` to install a specific version. Drivers are Mac-compatible starting from `4.1.7preview` release. + sudo pear config-set php_ini `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` system sudo pecl install sqlsrv sudo pecl install pdo_sqlsrv - -*Note: The first step is not required in Mac OS X. PECL installs the stable version when version is not specified. You may run `sudo pecl search sqlsrv` to search for the latest releases and `sudo pecl install sqlsrv-[version]` to install a specific version. -Drivers are Mac-compatible starting from `4.1.7preview` release. - + ### Step 4: Install and Configure Apache #### PHP 7.0