Update instructions for mod_php integration with apache web server.

Approved by: trhodes (mentor), keramida (mentor)
PR: 99723
This commit is contained in:
Daniel Gerzo 2006-08-25 21:04:34 +00:00
parent 163edf7af0
commit 0adaa94e40
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=28547

View file

@ -4091,9 +4091,38 @@ DocumentRoot /www/someotherdomain.tld
<para>To gain support for <acronym>PHP</acronym>5 for the
<application>Apache</application> web server, begin by
installing the
<filename role="package">www/mod_php5</filename>
<filename role="package">lang/php5</filename>
port.</para>
<para>If the <filename role="package">lang/php5</filename> port
is being installed for the first time, available
<literal>OPTIONS</literal> will be displayed automatically.
If a menu is not displayed, i.e. because the <filename
role="package">lang/php5</filename> port has been installed
some time in the past, it is always possible to bring the
options dialog up again by running:</para>
<screen>&prompt.root; <userinput>make config</userinput></screen>
<para>in the port directory.</para>
<para>In the options dialog, check the
<literal>APACHE</literal> option to build
<application>mod_php5</application> as a loadable module for
the <application>Apache</application> web server.</para>
<note>
<para>A lot of sites are still using <acronym>PHP</acronym>4
for various reasons (i.e. compatibility issues or already
deployed web applications). If the
<application>mod_php4</application> is needed instead of
<application>mod_php5</application>, then please use the
<filename role="package">lang/php4</filename> port. The
<filename role="package">lang/php4</filename> port supports
many of the configuration and build-time options of the
<filename role="package">lang/php5</filename> port.</para>
</note>
<para>This will install and configure the modules required
to support dynamic <acronym>PHP</acronym> applications. Check
to ensure the following sections have been added to
@ -4117,6 +4146,11 @@ DocumentRoot /www/someotherdomain.tld
<screen>&prompt.root; <userinput>apachectl graceful</userinput></screen>
<para>For future upgrades of <acronym>PHP</acronym>, the
<command>make config</command> command will not be required;
the selected <literal>OPTIONS</literal> are saved
automatically by the &os; Ports framework.</para>
<para>The <acronym>PHP</acronym> support in &os; is extremely
modular so the base install is very limited. It is very easy
to add support using the