mirror of
https://github.com/macintoshplus/doc-en.git
synced 2026-03-28 10:52:18 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@175877 c90b9560-bf6c-de11-be94-00142212c4b1
148 lines
4.7 KiB
XML
148 lines
4.7 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.10 $ -->
|
|
<sect1 id="install.windows.apache2">
|
|
<title>Apache 2.0.x on Microsoft Windows</title>
|
|
<para>
|
|
This section contains notes and hints specific to Apache 2.0.x installs
|
|
of PHP on Microsoft Windows systems. We also
|
|
have <link linkend="install.windows.apache1">instructions and notes
|
|
for Apache 1.3.x users on a separate page</link>.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
You should read the <link linkend="install.windows.manual">manual
|
|
installation steps</link> first!
|
|
</para>
|
|
</note>
|
|
|
|
&warn.apache2.compat;
|
|
|
|
<para>
|
|
You are highly encouraged to take a look at the
|
|
<ulink url="&url.apache2.docs;">Apache Documentation</ulink> to get
|
|
a basic understanding of the Apache 2.0.x Server. Also consider to
|
|
read the <ulink url="&url.apache2.windows;">Windows specific
|
|
notes</ulink> for Apache 2.0.x before reading on here.
|
|
</para>
|
|
|
|
&install.snippet.apache2.compat;
|
|
|
|
<warning>
|
|
<para>
|
|
Apache 2.0.x is designed to run on Windows NT 4.0, Windows 2000 or
|
|
Windows XP. At this time, support for Windows 9x is incomplete.
|
|
Apache 2.0.x is not expected to work on those platforms at this time.
|
|
</para>
|
|
</warning>
|
|
<para>
|
|
Download the most recent version of <ulink url= "&url.apache;">
|
|
Apache 2.0.x</ulink> and a fitting PHP version.
|
|
Follow the <link linkend="install.windows.manual">Manual Installation
|
|
Steps</link> and come back to go on with the integration of PHP and Apache.
|
|
</para>
|
|
<para>
|
|
There are two ways to set up PHP to work with Apache 2.0.x on Windows.
|
|
One is to use the CGI binary the other is to use the Apache module DLL.
|
|
In either case you need to edit your &httpd.conf; to configure Apache
|
|
to work with PHP and then restart the server.
|
|
</para>
|
|
|
|
¬e.apache.slashes;
|
|
|
|
<sect2 id="install.windows.apache2.cgi">
|
|
<title>Installing as a CGI binary</title>
|
|
|
|
<para>
|
|
You need to insert these three lines to your Apache &httpd.conf;
|
|
configuration file to set up the CGI binary:
|
|
<example>
|
|
<title>PHP and Apache 2.0 as CGI</title>
|
|
<programlisting role="apache-conf">
|
|
<![CDATA[
|
|
ScriptAlias /php/ "c:/php/"
|
|
AddType application/x-httpd-php .php
|
|
|
|
# For PHP 4
|
|
Action application/x-httpd-php "/php/php.exe"
|
|
|
|
# For PHP 5
|
|
Action application/x-httpd-php "/php/php-cgi.exe"
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
&warn.install.cgi;
|
|
</sect2>
|
|
|
|
<sect2 id="install.windows.apache2.module">
|
|
<title>Installing as an Apache module</title>
|
|
<para>
|
|
You need to insert these two lines to your
|
|
Apache &httpd.conf; configuration file to set up the
|
|
PHP module for Apache 2.0:
|
|
<example>
|
|
<title>PHP and Apache 2.0 as Module</title>
|
|
<programlisting role="apache-conf">
|
|
<![CDATA[
|
|
# For PHP 4 do something like this:
|
|
LoadModule php4_module "c:/php/php4apache2.dll"
|
|
AddType application/x-httpd-php .php
|
|
|
|
# For PHP 5 do something like this:
|
|
LoadModule php5_module "c:/php/php5apache2.dll"
|
|
AddType application/x-httpd-php .php
|
|
|
|
# configure the path to php.ini
|
|
PHPIniDir "C:/php"
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<note>
|
|
<simpara>
|
|
Remember to substitute the <filename>c:/php/</filename> for your actual
|
|
path to PHP in the above examples. Take care to use
|
|
either <filename>php4apache2.dll</filename> or
|
|
<filename>php5apache2.dll</filename> in your LoadModule directive and
|
|
<emphasis>not</emphasis> <filename>php4apache.dll</filename> or
|
|
<filename>php5apache.dll</filename> as the latter ones are designed to
|
|
run with <link linkend="install.windows.apache1">Apache 1.3.x</link>.
|
|
</simpara>
|
|
</note>
|
|
<note>
|
|
<para>
|
|
If you want to use content negotiation, read
|
|
<link linkend="faq.installation.apache.multiviews">related FAQ</link>.
|
|
</para>
|
|
</note>
|
|
<warning>
|
|
<simpara>
|
|
Don't mix up your installation with DLL files from
|
|
<emphasis>different PHP versions</emphasis>. You have the only choice
|
|
to use the DLL's and extensions that ship with your downloaded PHP version.
|
|
</simpara>
|
|
</warning>
|
|
</sect2>
|
|
</sect1>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|