PHP: Enable CURL in WAMP environment

So I needed to enable Curl to run a PHP script today and my WAMP installation didn’t have CURL enabled “out-of-the-box”. This was however easily fixed by following these steps:

  1. Close WAMP
  2. Go to your WAMP installation directory and enter bin\php\php[VERSION] (normally this will be C:\wamp\bin\php\php[VERSION])
  3. Open php.ini in your favorite editor
  4. Search for curl and you’ll find a line similar to “;extension=php_curl.dll“, uncomment it (remove the semi-colon)
  5. Save and close the file
  6. Go to your WAMP installation directory and enter bin\apache\apache[VERSION]\bin\ (normally this will be C:\wamp\bin\apache\apache[VERSION]\bin)
  7. Open php.ini in your favorite editor
  8. Search for curl and you’ll find a line similar to “;extension=php_curl.dll“, uncomment it (remove the semi-colon)
  9. Save and close the file
  10. Restart WAMP