Monday, August 20, 2012

MODx: enabling cURL in WAMP on Win 7 64bit

MODx requires that cURL be running, and to enable it on a Win 7 64bit platform:

  • add the PHP Bin folder to the PATH. ie: C:\wamp\bin\php\php5.3.13
  • edit the php.ini file in the PHP folder to uncomment the extension=php_curl.dll line.
  • also edit the php.ini file in Apache's /bin folder to uncomment the same line.
If you get a cURL error "because the side-by-side configuration incorrect" then you can go to http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/, scroll down to "Fixed curl extension" and download "php_curl-5.4.3-VC9-x64.zip".  Replace the php_curl.dll in the PHP ext folder with this new one and restart the server.

3 comments:

  1. What is meant by "add the PHP Bin folder to the PATH. ie: C:\wamp\bin\php\php5.3.13"? Can you please elaborate? Thanks

    ReplyDelete
    Replies
    1. You need to add the path to the PHP Bin folder to the PATH variable of your OS, for instructions on how to do this, Google is probably your best resource: https://www.google.ca/search?q=adding+to+path+windows :)

      Delete