openssl.installation.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 90 行
HTML
90 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Installation</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="openssl.setup.html">Installing/Configuring</a></div> <div class="next" style="text-align: right; float: right;"><a href="openssl.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="openssl.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="openssl.installation" class="section"> <h2 class="title">Installation</h2> <p class="para"> To use PHP's OpenSSL support you must also compile PHP <span class="option">--with-openssl[=DIR]</span>. </p> <blockquote><p><b class="note">Note</b>: <b>Note to Win32 Users</b><br /> In order for this extension to work, there are<acronym title="Dynamic Link Library">DLL</acronym> files that must be available to the Windowssystem <i>PATH</i>. For information on how to do this, see the<acronym>FAQ</acronym> entitled "<a href="faq.installation.html#faq.installation.addtopath" class="link">How do I add my PHP directory to the PATHon Windows</a>". Although copying DLLfiles from the PHP folder into the Windows system directory also works(because the system directory is by default in the system's<i>PATH</i>), this is not recommended. <em class="emphasis">This extension requires the following files to be in the<i>PATH</i>:</em> <var class="filename">libeay32.dll</var> <br /> Additionally, if you are planning to use the key generation and certificate signing functions, you will need to install a valid <var class="filename">openssl.cnf</var> 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 <var class="filename">openssl</var> directory. PHP 5.x and 6.x has the file in the <var class="filename">extras/openssl</var> directory. If you are either using PHP 4.2.x or missing the file, you can obtain it from <a href="http://www.openssl.org/related/binaries.html" class="link external">» the OpenSSL binaries page</a> or by downloading a recent PHP release. Be aware that Windows Explorer hides the <var class="filename">.cnf</var> extension by default and says the file Type is <i>SpeedDial</i>. <br /> PHP will search for the <var class="filename">openssl.cnf</var> using the following logic: <ul class="itemizedlist"> <li class="listitem"> <span class="simpara">the <i>OPENSSL_CONF</i> environmental variable, if set, will be used as the path (including filename) of the configuration file. </span> </li> <li class="listitem"> <span class="simpara">the <i>SSLEAY_CONF</i> environmental variable, if set, will be used as the path (including filename) of the configuration file. </span> </li> <li class="listitem"> <span class="simpara">The file <var class="filename">openssl.cnf</var> 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 <var class="filename">c:\usr\local\ssl\openssl.cnf</var>. </span> </li> </ul> <br /> <span class="simpara"> In your installation, you need to decide whether to install the configuration file at <var class="filename">c:\usr\local\ssl\openssl.cnf</var> 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 <i><tt class="parameter">configargs</tt></i> of the functions that require a configuration file. </span> </p></blockquote></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="openssl.setup.html">Installing/Configuring</a></div> <div class="next" style="text-align: right; float: right;"><a href="openssl.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="openssl.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?