Installing/Configuring
Runtime Configuration
Installing/Configuring
PHP Manual

## Installation

To use PHP's OpenSSL support you must also compile PHP --with-openssl[=DIR].

> Note: Note to Win32 Users In order for this extension to work, there are DLL files that must be available to the Windows system PATH. For information on how to do this, see the FAQ entitled "How do I add my PHP directory to the PATH on Windows". Although copying DLL files from the PHP folder into the Windows system directory also works (because the system directory is by default in the system's PATH), this is not recommended. This extension requires the following files to be in the PATH: libeay32.dll
> Additionally, if you are planning to use the key generation and certificate signing functions, you will need to install a valid openssl.cnf on your system. As of PHP 4.3.0, we include a sample configuration file in the openssl folder of our win32 binary distribution. If you are using PHP 4.2.0 or later and are missing the file, you can obtain it from » the OpenSSL home page or by downloading the PHP 4.3.0 release and using the configuration file from there. PHP will search for the openssl.cnf using the following logic:

> - the OPENSSL_CONF environmental variable, if set, will be used as the path (including filename) of the configuration file.
> - the SSLEAY_CONF environmental variable, if set, will be used as the path (including filename) of the configuration file.
> - The file openssl.cnf will be assumed to be found in the default certificate area, as configured at the time that the openssl DLL was compiled. This is usually means that the default filename is c:\usr\local\ssl\openssl.cnf.
> In your installation, you need to decide whether to install the configuration file at c:\usr\local\ssl\openssl.cnf or whether to install it someplace else and use environmental variables (possibly on a per-virtual-host basis) to locate the configuration file. Note that it is possible to override the default path from the script using the `configargs` of the functions that require a configuration file.

Installing/Configuring
Runtime Configuration
Installing/Configuring
PHP Manual