Skip to content

Instantly share code, notes, and snippets.

@dragonmantank
Last active August 29, 2015 14:15
Show Gist options
  • Save dragonmantank/b342a690bf3ab4fef1c2 to your computer and use it in GitHub Desktop.
Save dragonmantank/b342a690bf3ab4fef1c2 to your computer and use it in GitHub Desktop.
Setting up Windows for git and PHP
* Download http://windows.php.net/downloads/releases/php-5.6.5-nts-Win32-VC11-x86.zip and extract it to C:\php56
* Copy C:\php56\php.ini-development to C:\php56\php.ini
* Edit C:\php56\php.ini and turn on any extensions you need
* Download git from http://git-scm.com/downloads and install it. When asked about adjusting your PATH settings, select the 3rd option ('Use Git and optional tools from the Windows Command Prompt')
* Open up powershell and run 'ssh-keygen.exe -t rsa' to generate an SSH key for Github
* This should be availabe in C:\Users\[username]\.ssh\id_rsa.pub
* Either invoke PHP with C:\php56\php.exe or add C:\php56 to your PATH
* Hit the Windows key and search for 'View Advanced Windows Settings' Or Click on Start, then right-click 'My Computer' and select 'Properties'
* If you right clicked on 'My Computer', click the 'Advanced' tab
* Click on the 'Environmental Buttons' option
* Under the 'System Variables' area edit the 'Path' option, and add '; C:\php56' to the path. You may need to log in and out for this to work after it's saved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment