Activar cURL con WAMP Server, problemas resueltos.

[In English: https://josemmsimo.wordpress.com/2013/06/01/enable-curl-with-wamp-server-problems-solved]

Este artículo no es solo para activar cURL in WAMP Server… Además, es para resolver los problemas que tienen las últimas versiones de WAMP Server con cURL, así que si tú tienes problemas para activar cURL, has encontrado aquí la solución :)

Hace algunos dias, en mi actual proyecto tuvimos la necesidad de usar cURL. Con el fin de resolver este problema fue necesario cambiar algunos archivos en WAMP y añadir algunos archivos a Windows.

Esta solución es para PHP 5.4.3 y PHP 5.3.13 (32 y 64 bit) para Windows, ya que estas son las últimas versiones de WAMP (en este momento) y las versiones que tenían estos problemas.

Con el fin de habititar cURL:

  • Para todos los servicios de WAMP Server (click con el botón izquierdo sobre el icono de WAMP / click en «Detener todos los servicios»).
  • Cierra WAMP (click con el botón derecho sobre el icono de WAMP / «Salir»).
  • Abrir C:\wamp\bin\php\php[tu actual versión]\php.ini con Notepad o alguno similar, y descomentar extension=php_curl.dll (elimina el «;» que hay antes de «extension=php_curl.dll»). Guarda los cambios y cierra el archivo.
  • Abrir C:\wamp\bin\apache\apache[tu actual versión]\bin\php.ini con Notepad o alguno similar, y descomentar extension=php_curl.dll (elimina el «;» que hay antes de «extension=php_curl.dll»). Guarda los cambios y cierra el archivo.

Teóricamente, es no necesario hacer mas cambios, pero si estás usando la versión PHP 5.4.3 o PHP 5.3.13 en WAMP server, tendrás problemas para hacerlo funcionar.

Con el fin de resolver estos problemas:

  • Copia los archivos libeay32.dll y ssleay32.dll en C:\Windows\System32\
  • Copia el archivo php_curl.dll en c:\wamp\bin\php\php[tu actual versión]\ext\

Para descargar download libeay32.dll y ssleay32.dll click aquí.

Para descargar php_curl.dll, hay varias posibilidades:

– Usando PHP en «Non Thread Safe» o «Modo no seguro» (lo más normal):

– Usando PHP en «Thread Safe» o «Modo seguro»:

Espero que esto te haya ayudado ;)

Enable cURL with WAMP Server, problems solved.

[En Español: https://josemmsimo.wordpress.com/2013/06/01/activar-curl-con-wamp-server-problemas-resueltos]

This article is not only for enable cURL in WAMP Server… In addition, it is for resolve the problem that have the last versions of WAMP Server with cURL, so that if you have problems for active cURL, you have found the solution here :)

Some days ago, in my actual project we had the necessity of use the cURL. In order to resolve this problem was necessary change some files in WAMP and add some files in Windows.

This solution is for PHP 5.4.3 and PHP 5.3.13 (64 bit) for Windows, because they are the last versions of WAMP (in this moment) and the versions that have these problems.

In order to enable the cURL:

  • Stop all the services in WAMP Server (left click in the icon of WAMP / click in «Stop All Services»).
  • Close WAMP (right click in the icon of WAMP / «Exit»).
  • Open C:\wamp\bin\php\php[your actual version]\php.ini with Notepad or similar, and uncomment extension=php_curl.dll (delete «;» before of «extension=php_curl.dll»). Save the changes and close.
  • Open C:\wamp\bin\apache\apache[your actual version]\bin\php.ini with Notepad or similar, and uncomment extension=php_curl.dll (delete «;» before of «extension=php_curl.dll»). Save the changes and close.

Theoretically, it is not necessary do more changes, but if you are using the version PHP 5.4.3 or PHP 5.3.13 in WAMP server, you will have problems.

In order to resolve these problems:

  • Copy the files libeay32.dll and ssleay32.dll in C:\Windows\System32\
  • Copy the file php_curl.dll in c:\wamp\bin\php\php[your actual version]\ext\

In order to download libeay32.dll and ssleay32.dll click here.

In order to download php_curl.dll, there are several possibilities:

– Using PHP in «Non Thread Safe» (the most normal):

– Using PHP in «Thread Safe»:

I hope this has helped you ;)