Fix minor issues in Apache2 config guide (#785)

This commit is contained in:
Kamil Tekiela 2021-07-14 13:06:01 +01:00 committed by GitHub
parent 30d10364ee
commit 2b8d277712
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 26 deletions

View file

@ -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

View file

@ -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>