Install Php Windows Git Bash

Explains how to install Arcanist on Windows.

In this video we use the new bash shell / linux subsystem under Windows-10 and install Apache and MySQL (lamp-server) to write hand test PHP applications und. In this video we use the new bash shell / linux subsystem under Windows-10 and install Apache and MySQL (lamp-server) to write hand test PHP applications und. Git Bash is command line programs which allow you to interface with the underlying git program. You can run it by right clicking your mouse on the desktop, and selecting Git Bash from pop up window. Let me know in the comments below. How to set up a PHP development environment on Windows Subsystem for. Fortunately, you can always download PHP for Windows yourself and upgrade your PHP installation on Windows to a newer version with just a few additional steps explained on this post. Further Reading. PHP for the Web: Visual QuickStart Guide (5th Edition) Modern PHP: New Features and Good Practices How to Upgrade to PHP 7.1 on Windows 10. Git Bash is command line programs which allow you to interface with the underlying git program. You can run it by right clicking your mouse on the desktop, and selecting Git Bash from pop up window. Let me know in the comments below. How to set up a PHP development environment on Windows Subsystem for Linux (WSL).

Overview

Arcanist runs on Windows, either in cmd.exe or the Git Bash environments.However, it will take a little effort to get working. This document explainswhat you need to do in order to get it running.

NOTE: Windows support is relatively new and incomplete, file bugs when you runinto issues.

Required Components

You need to install:

Install
  • Arcanist itself, see Arcanist User Guide. or Arcanist Quick Start.
  • PHP (see 'Detailed PHP Install Instructions' below).
  • SVN, Git, or Mercurial.

Then, configure:

  • Your PATH environmental variable should include arcanist/bin, the php directory, and the directory where your VCS command lives. When you type php, arc, or (for example) git from the command line, they should all do something.
  • Your EDITOR environmental variable should point at some valid CLI editor, like the Git Bash vim. You can set this in arc if you prefer. See below for details.

You can set environmental variables somewhere in the Advanced tab of theSystem control panel.

Now you should be able to run arc normally (either from cmd.exe orGit Bash) and it should work more-or-less properly.

Configuring an Editor

NOTE: You can not use Notepad as your editor, because it does not have ablocking mode. You can use GitPad instead.

Some arc workflows prompt you to edit large blocks of text using a text editor.You can configure various programs for this purpose, depending on which texteditor you prefer. Some editors that will work are:

  • Notepad++, a good all-around editor.
  • vim, which comes with Git Bash.
  • GitPad, which allows you to use Notepad as your editor.

Other editors may also work, but they must have a blocking edit mode.

To configure an editor, either set the EDITOR environmental variable to pointat it, or run:

Install Php Windows Git Bash
NOTE: Note the use of quotes. Paths with spaces in them must be quoted, andthese quotes must be escaped when passed to arc set-config, as in the examplesbelow.
Git

Specifically, you can use this command for Notepad++ (adjusting the path foryour machine):

And this command for Vim (you may need to adjust the path):

And this for GitPad (you may need to adjust the path):

And this for Sublime Text (you may need to adjust the path):

Detailed PHP Install Instructions

Bash

While multiple versions of PHP should work, you can follow these specificinstructions if you're having trouble.

  • Download the latest stable PHP binary release from: http://windows.php.net/download/. 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:PHPext', 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

Git Bash For Pc

Continue by:

How to open git bash

Git Bash Tutorial For Windows

  • returning to Arcanist User Guide.