설치/설정
PHP Manual

설치

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

The OpenSSL library also has additional requirements for normal operation at run-time. Most notably, OpenSSL requires access to a random or pseudo-random number generator; on most Unix and Unix-like platforms (including Linux), this means that it must have access to a /dev/urandom or /dev/random device.

Note: Note to Win32 Users

이 확장이 동작하려면, DLL 파일이 윈도우 시스템 PATH에 존재하여야 합니다. 이를 위한 정보는, "윈도우에서 PHP 디렉토리를 PATH에 추가하기"에 관한 FAQ을 참고하십시오. DLL 파일을 PHP 폴더에서 윈도우 시스템 디렉토리로 복사하여도 작동하지만(시스템 디렉토리는 기본적으로 시스템 PATH에 존재하기 때문), 권장하지 않습니다. 이 확장은 다음 파일이 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 file on your system. As of PHP 4.3.0, we include a sample configuration file in our win32 binary distributions. PHP 4.3.x and 4.4.x has the file in the openssl directory. PHP 5.x and 7.x has the file in the extras/openssl directory.

PHP will search for the openssl.cnf using the following logic:

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.


설치/설정
PHP Manual