mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 08:28:54 +00:00
Fix minor issues in Apache2 config guide (#785)
This commit is contained in:
parent
30d10364ee
commit
2b8d277712
2 changed files with 26 additions and 26 deletions
|
@ -177,14 +177,25 @@ cp php.ini-development /usr/local/lib/php.ini
|
|||
|
||||
<listitem>
|
||||
|
||||
<para>
|
||||
Edit your httpd.conf to load the PHP module. The path on the right hand
|
||||
side of the LoadModule statement must point to the path of the PHP
|
||||
module on your system. The make install from above may have already
|
||||
added this for you, but be sure to check.
|
||||
</para>
|
||||
<para>
|
||||
Edit your httpd.conf to load the PHP module. The path on the right hand
|
||||
side of the LoadModule statement must point to the path of the PHP
|
||||
module on your system. The make install from above may have already
|
||||
added this for you, but be sure to check.
|
||||
</para>
|
||||
|
||||
<informalexample>
|
||||
<informalexample>
|
||||
<para>
|
||||
For PHP 8:
|
||||
</para>
|
||||
<programlisting role="apache-conf">
|
||||
<![CDATA[
|
||||
LoadModule php_module modules/libphp.so
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
|
||||
<informalexample>
|
||||
<para>
|
||||
For PHP 7:
|
||||
</para>
|
||||
|
@ -195,20 +206,9 @@ LoadModule php7_module modules/libphp7.so
|
|||
</programlisting>
|
||||
</informalexample>
|
||||
|
||||
<informalexample>
|
||||
<para>
|
||||
For PHP 5:
|
||||
</para>
|
||||
<programlisting role="apache-conf">
|
||||
<![CDATA[
|
||||
LoadModule php5_module modules/libphp5.so
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</listitem>
|
||||
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<listitem>
|
||||
|
||||
<para>
|
||||
Tell Apache to parse certain extensions as PHP. For example, let's have
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</para>
|
||||
<note>
|
||||
<para>
|
||||
You should read the <link linkend="install.windows.manual">manual
|
||||
Please read the <link linkend="install.windows.manual">manual
|
||||
installation steps</link> first!
|
||||
</para>
|
||||
</note>
|
||||
|
@ -39,13 +39,13 @@
|
|||
<sect2 xml:id="install.windows.apache2.module">
|
||||
<title>Installing as an Apache handler</title>
|
||||
<para>
|
||||
To load the PHP module for Apache 2.x the following lines in the
|
||||
To load the PHP module for Apache 2.x, the following lines in the
|
||||
Apache &httpd.conf; configuration file must be inserted:
|
||||
<example>
|
||||
<title>PHP and Apache 2.x as handler</title>
|
||||
<programlisting role="apache-conf">
|
||||
<![CDATA[
|
||||
#
|
||||
# before PHP 8.0.0 the name of the module was php7_module
|
||||
LoadModule php_module "c:/php/php8apache2_4.dll"
|
||||
<FilesMatch \.php$>
|
||||
SetHandler application/x-httpd-php
|
||||
|
@ -58,10 +58,10 @@ PHPIniDir "C:/php"
|
|||
</para>
|
||||
<note>
|
||||
<simpara>
|
||||
Remember, the actual path to PHP on must be substituted instead of
|
||||
The actual path to PHP must be substituted instead of
|
||||
<filename>C:/php/</filename> in the above examples.
|
||||
Take care that the file referenced in the LoadModule directive is at
|
||||
the specified location, and to use <filename>php7apache2_4.dll</filename>
|
||||
Make sure that the file referenced in the <literal>LoadModule</literal> directive is at
|
||||
the specified location. Use <filename>php7apache2_4.dll</filename>
|
||||
for PHP 7, or <filename>php8apache2_4.dll</filename> for PHP 8.
|
||||
</simpara>
|
||||
</note>
|
||||
|
|
Loading…
Reference in a new issue