Installing the PHP/CURL binding
Manual Build and Install
Build OpenSSL (In openssl-0.9.x directory)
./config make make test make install
Build CURL (In curl-7.x.x directory)
./configure --with-ssl=/usr/local/ssl (if ssl was installed here) make make install (libcurl.so is now in /usr/local/lib)
Build PHP (In php-4.x.x directory)
./configure --with-openssl=/usr/local/ssl \ --with-curl=/usr/local/lib --with-apache=../apache_1.3.x make make install
Build and install SSL-aware Apache (In mod_ssl-2.8.xxxx directory)
./configure --with-apache=../apache1.3.x --with-ssl=/usr/local/ssl \ --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a Follow remaining steps the output tells. Restart your apache... BINGO!
Activation of PHP/CURL on windows is starting up notepad (or similar) and removing a semicolon from the following line in php.ini:
;extension=php_curl.dll(Mentioned here: php.net/manual/install.windows.extensions.php)
libcurl is statically linked in, but the SSL libraries are not, thus the note to Win32 users on php.net/curl. The two SSL-related DLLs from the OpenSSL project (libeay32.dll and ssleay32.dll) are bundled with the Windows PHP package.
In order to SSL-based protocols (such as HTTPS and FTPS) in your Windows environment, you must copy libeay32.dll and ssleay32.dll from the DLL folder of the PHP/ binary package to the SYSTEM folder of your Windows machine. (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM).
(Michael Wallner contributed to this)