cURL / libcurl / PHP Binding / Install

Installing the PHP/CURL binding

You might also find it helpful to install Apache + PHP + CURL + SSL using the Apache Toolbox. Check further down for Windows install.

Manual Build and Install

Build OpenSSL (In openssl-0.9.x directory)

make test
make install

Build CURL (In curl-7.x.x directory)

./configure --with-ssl=/usr/local/ssl (if ssl was installed here)
make install ( 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 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!

(contributed by Lim Chung Keng)


Activation of PHP/CURL on windows is starting up notepad (or similar) and removing a semicolon from the following line in php.ini:

(Mentioned here:

libcurl is statically linked in, but the SSL libraries are not, thus the note to Win32 users on 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)