install.windows.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 267 行

HTML
267 行
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Installation on Windows systems</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="install.macosx.client.html">Installing for Apache on MacOS X Client</a></div> <div class="next" style="text-align: right; float: right;"><a href="install.windows.installer.html">Windows Installer (PHP 5.1.0 and earlier)</a></div> <div class="up"><a href="install.html">Installation and Configuration</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div>   <h1>Installation on Windows systems</h1><h2>Table of Contents</h2><ul class="chunklist chunklist_chapter"><li><a href="install.windows.installer.html">Windows Installer (PHP 5.1.0 and earlier)</a></li><li><a href="install.windows.manual.html">Manual Installation Steps</a></li><li><a href="install.windows.activescript.html">ActiveScript</a></li><li><a href="install.windows.iis.html">Microsoft IIS / PWS</a></li><li><a href="install.windows.apache1.html">Apache 1.3.x on Microsoft Windows</a></li><li><a href="install.windows.apache2.html">Apache 2.0.x on Microsoft Windows</a></li><li><a href="install.windows.sun.html">Sun, iPlanet and Netscape servers on Microsoft Windows</a></li><li><a href="install.windows.omnihttpd.html">OmniHTTPd Server</a></li><li><a href="install.windows.sambar.html">Sambar Server on Microsoft Windows</a></li><li><a href="install.windows.xitami.html">Xitami on Microsoft Windows</a></li><li><a href="install.windows.building.html">Building from source</a></li><li><a href="install.windows.extensions.html">Installation of extensions on Windows</a></li></ul>   <p class="para">    This section applies to Windows 98/Me and Windows NT/2000/XP/2003. PHP     will not work on 16 bit platforms such as Windows 3.1 and sometimes     we refer to the supported Windows platforms as Win32. Windows 95    is no longer supported as of PHP 4.3.0.   </p>   <blockquote><p><b class="note">Note</b>:          Windows 98/ME/NT4 is no longer supported as of PHP 5.3.0.    <br />   </p></blockquote>   <blockquote><p><b class="note">Note</b>:          Windows 95 is no longer supported as of PHP 4.3.0.    <br />   </p></blockquote>   <p class="para">    There are two main ways to install PHP for Windows: either    <a href="install.windows.manual.html" class="link">manually</a>    or by using the <a href="install.windows.installer.html" class="link">installer</a>.   </p>   <p class="para">    If you have Microsoft Visual Studio, you can also     <a href="install.windows.building.html" class="link">build</a>    PHP from the original source code.   </p>   <p class="para">    Once you have PHP installed on your Windows system, you may also    want to <a href="install.windows.extensions.html" class="link">load various extensions</a>    for added functionality.   </p>   <div class="warning"><b class="warning">Warning</b>    <p class="para">     There are several all-in-one installers over the Internet, but none of     those are endorsed by PHP.net, as we believe that using one of     the official windows packages from      <a href="http://www.php.net/downloads.php" class="link external">&raquo; http://www.php.net/downloads.php</a>     is the best choice to have your system secure and optimized.    </p>   </div>      <div id="install.windows.installer.msi" class="sect1">   <h2 class="title">Windows Installer (PHP 5.2 and later)</h2>    <p class="para">     The Windows PHP installer for later versions of PHP is built using MSI     technology using the Wix Toolkit (<a href="http://wix.sourceforge.net/" class="link external">&raquo; http://wix.sourceforge.net/</a>).      It will install and configure PHP and all the built-in and      <acronym title="PHP Extension and Application Repository">PECL</acronym> extensions, as well as configure many of the      popular web servers such as <acronym>IIS</acronym>, Apache, and Xitami.    </p>        <p class="simpara">     First, install your selected <acronym title="Hypertext Transfer Protocol">HTTP</acronym> (web) server on your      system, and make sure that it works. Then proceed with one of the following     install types.    </p>        <div id="install.windows.installer.msi.normal" class="sect2">    <h3 class="title">Normal Install</h3>     <p class="para">      Run the MSI installer and follow the instructions provided by the      installation wizard. You will be prompted to select the Web Server you      wish to configure first, along with any configuration details needed.     </p>          <p class="para">      You will then be prompted to select which features and extensions you      wish to install and enable. By selecting &quot;Will be installed on local       hard drive&quot; in the drop-down menu for each item you can trigger whether      to install the feature or not. By selecting &quot;Entire feature will be       installed on local hard drive&quot;, you will be able to install all       sub-features of the included feature ( for example by selecting this       options for the feature &quot;PDO&quot; you will install all PDO Drivers ).     </p>          <div class="warning"><b class="warning">Warning</b>      <p class="para">       It is not recommended to install all extensions by default, since many       other them require dependencies from outside PHP in order to function       properly. Instead, use the Installation Repair Mode that can be       triggered thru the &#039;Add/Remove Programs&#039; control panel to       enable or disable extensions and features after installation.      </p>     </div>          <p class="para">      The installer then sets up PHP to be used in Windows and the <var class="filename">php.ini</var>      file, and configures certain web servers to use PHP. The installer will      currently configure IIS, Apache, Xitami, and Sambar      Server; if you are using a different web server you&#039;ll need to      configure it manually.      </p>    </div>        <div id="install.windows.installer.msi.silent" class="sect2">    <h3 class="title">Silent Install</h3>     <p class="para">      The installer also supports a silent mode, which is helpful for Systems      Administrators to deploy PHP easily. To use silent mode:      <div class="example-contents"><pre><div class="cdata"><pre>       msiexec.exe /i php-VERSION-win32-install.msi /q</pre></div>           </pre></div>     </p>     <p class="para">      You can control the install directory by passing it as a parameter to the      install. For example, to install to e:\php:      <div class="example-contents"><pre><div class="cdata"><pre>       msiexec.exe /i php-VERSION-win32-install.msi /q INSTALLDIR=e:\php</pre></div>           </pre></div>      You can also use the same syntax to specify the Apache Configuration      Directory (APACHEDIR), the Sambar Server directory (SAMBARDIR), and the      Xitami Server directory (XITAMIDIR).     </p>     <p class="para">      You can also specify what features to install. For example, to install       the mysqli extension and the CGI executable:      <div class="example-contents"><pre><div class="cdata"><pre>       msiexec.exe /i php-VERSION-win32-install.msi /q ADDLOCAL=cgi,ext_php_mysqli</pre></div>           </pre></div>     </p>     <p class="para">      The current list of Features to install is as follows:      <div class="example-contents"><pre><div class="cdata"><pre> MainExecutable - php.exe executableScriptExecutable - php-win.exe executableext_php_* - the various extensions ( for example: ext_php_mysql for MySQL )apache13 - Apache 1.3 moduleapache20 - Apache 2.0 moduleapache22 - Apache 2,2 moduleapacheCGI - Apache CGI executableiis4ISAPI - IIS ISAPI moduleiis4CGI - IIS CGI executableNSAPI - Sun/iPlanet/Netscape server moduleXitami - Xitami CGI executableSambar - Sambar Server ISAPI moduleCGI - php-cgi.exe executablePEAR - PEAR installerManual - PHP Manual in CHM Format</pre></div>      </pre></div>     </p>     <p class="para">      For more information on installing MSI installers from the command line,      visit <a href="http://msdn.microsoft.com/en-us/library/aa367988.aspx" class="link external">&raquo; http://msdn.microsoft.com/en-us/library/aa367988.aspx</a>     </p>    </div>        <div id="install.windows.installer.msi.upgrade" class="sect2">    <h3 class="title">Upgrading PHP with the Install</h3>         <p class="para">      To upgrade, run the installer either graphically or from the command line       as normal. The installer will read your current install options, remove      your old installation, and reinstall PHP with the same options as before.      It is recommended that you use this method of keeping PHP updated instead      of manually replacing the files in the installation directory.     </p>    </div>    </div>                                                               </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="install.macosx.client.html">Installing for Apache on MacOS X Client</a></div> <div class="next" style="text-align: right; float: right;"><a href="install.windows.installer.html">Windows Installer (PHP 5.1.0 and earlier)</a></div> <div class="up"><a href="install.html">Installation and Configuration</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?