From 0adaa94e400e9a83b0e91c20322b7e4ecb6ded1c Mon Sep 17 00:00:00 2001 From: Daniel Gerzo Date: Fri, 25 Aug 2006 21:04:34 +0000 Subject: [PATCH] Update instructions for mod_php integration with apache web server. Approved by: trhodes (mentor), keramida (mentor) PR: 99723 --- .../handbook/network-servers/chapter.sgml | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml b/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml index 2013b83364..a2af2263af 100644 --- a/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml @@ -4091,9 +4091,38 @@ DocumentRoot /www/someotherdomain.tld To gain support for PHP5 for the Apache web server, begin by installing the - www/mod_php5 + lang/php5 port. + If the lang/php5 port + is being installed for the first time, available + OPTIONS will be displayed automatically. + If a menu is not displayed, i.e. because the lang/php5 port has been installed + some time in the past, it is always possible to bring the + options dialog up again by running: + + &prompt.root; make config + + in the port directory. + + In the options dialog, check the + APACHE option to build + mod_php5 as a loadable module for + the Apache web server. + + + A lot of sites are still using PHP4 + for various reasons (i.e. compatibility issues or already + deployed web applications). If the + mod_php4 is needed instead of + mod_php5, then please use the + lang/php4 port. The + lang/php4 port supports + many of the configuration and build-time options of the + lang/php5 port. + + This will install and configure the modules required to support dynamic PHP applications. Check to ensure the following sections have been added to @@ -4117,6 +4146,11 @@ DocumentRoot /www/someotherdomain.tld &prompt.root; apachectl graceful + For future upgrades of PHP, the + make config command will not be required; + the selected OPTIONS are saved + automatically by the &os; Ports framework. + The PHP support in &os; is extremely modular so the base install is very limited. It is very easy to add support using the