From daabc41fa10886419b6b294a8730979141eab03f Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 30 Aug 2012 13:51:53 -0700 Subject: [PATCH] Add detailed instructions for installing PHP on Windows Summary: This isn't very obvious, provide some more specific instructions. Test Plan: Followed the instructions on my Windows machine, got a working `php`. Reviewers: btrahan, vrana, jungejason Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D2555 --- src/docs/userguide/arcanist_windows.diviner | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/docs/userguide/arcanist_windows.diviner b/src/docs/userguide/arcanist_windows.diviner index 67a9022c5a..4ba4fcc811 100644 --- a/src/docs/userguide/arcanist_windows.diviner +++ b/src/docs/userguide/arcanist_windows.diviner @@ -17,7 +17,7 @@ into issues. You need to install: - Arcanist itself, see @{article:Arcanist User Guide}. - - PHP + - PHP (see "Detailed PHP Install Instructions" below). - SVN, Git, or Mercurial. Then, configure: @@ -77,6 +77,25 @@ And this for GitPad (you may need to adjust the path): name=GitPad $ arc set-config editor "\"C:\Users\yourusername\AppData\Roaming\GitPad\GitPad.exe\"" += Detailed PHP Install Instructions = + +While multiple versions of PHP should work, you can follow these specific +instructions if you're having trouble. + + - Download the latest stable PHP binary release from: + . When this document was last + updated, this was PHP 5.4.6, but newer versions should also work. The + "VC9 x86 Non Thread Safe" build should work correctly. (Other versions newer + than PHP 5.3 should work, and thread-safe versions should also work.) + - Unzip the PHP directory. + - Copy `php.ini-development` to `php.ini` in that same directory. + - Open `php.ini` and locate the line `;extension=php_curl.dll`. Remove the + `;` to activate this extension. Locate the line `; extension_dir = "ext"` + and change it to `; extension_dir = "C:\PHP\ext"`, where `C:\PHP` is + the directory where you installed PHP. + - Verify that things work by running `php -i` from your commandline and + looking for `curl` in the output. + = Next Steps = Continue by: