Skip to content

Instantly share code, notes, and snippets.

@fabiofdsantos
Created March 8, 2018 11:23
Show Gist options
  • Save fabiofdsantos/1f93df87ce1fe0c386d1015a1c468ef2 to your computer and use it in GitHub Desktop.
Save fabiofdsantos/1f93df87ce1fe0c386d1015a1c468ef2 to your computer and use it in GitHub Desktop.
How to install PHP on Windows

How to install PHP on Windows

  1. Download PHP binaries: https://windows.php.net/download/
  2. Extract .zip to C:\php
  3. Rename C:\php\php.ini-production to php.ini
  4. On php.ini, find extension_dir and change the existing value to "C:\php\ext"
  5. On php.ini, enable the needed extensions. E.g. extension=php_curl.dll
  6. Edit the system environment variables by editing system variable Path and add C:\php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment