From nobody@FreeBSD.org  Sun Mar 26 15:25:04 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AF02616A400
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 Mar 2006 15:25:04 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6D2E143D46
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 Mar 2006 15:25:04 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k2QFP4dG050630
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 Mar 2006 15:25:04 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k2QFP40Q050629;
	Sun, 26 Mar 2006 15:25:04 GMT
	(envelope-from nobody)
Message-Id: <200603261525.k2QFP40Q050629@www.freebsd.org>
Date: Sun, 26 Mar 2006 15:25:04 GMT
From: 50g <citygrit@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: about install php or mod_php and handbook
X-Send-Pr-Version: www-2.3

>Number:         94969
>Category:       docs
>Synopsis:       [patch] correct information about install php or mod_php and handbook
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 26 15:30:14 GMT 2006
>Closed-Date:    Sat May 12 14:22:10 GMT 2007
>Last-Modified:  Sat May 12 14:22:10 GMT 2007
>Originator:     50g
>Release:        6.0-RELEASE
>Organization:
>Environment:
FreeBSD ns.carpooler.cn 6.0-RELEASE FreeBSD 6.0-RELEASE #2: Wed Mar 22 20:28:28 CST 2006     root@ns.carpooler.cn:/usr/obj/usr/src/sys/MYKERNEL  i386
>Description:
install /usr/ports/lang/php4 or /usr/ports/www/mod_php4 complete,the standard output only have this.

"Make sure index.php is part of your DirectoryIndex.



You should add the following to your Apache configuration file:



AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps


but at the same time need copy /usr/local/etc/php.ini-dist or php.ini-recommended to php.ini,do this talents will be complete install and run it.
>How-To-Repeat:
install
>Fix:
Index: chapter.sgml
===================================================================
RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml,v
retrieving revision 1.79
diff -u -r1.79 chapter.sgml
--- chapter.sgml	20 Mar 2006 10:40:26 -0000	1.79
+++ chapter.sgml	26 Mar 2006 14:55:02 -0000
@@ -4513,6 +4513,13 @@
         AddType application/x-httpd-php-source .phps
     &lt;/IfModule&gt;</programlisting>
 
+	<note><para>Typically you will want to copy the default
+	  <filename>/usr/local/etc/php.ini-dist</filename> or
+	  <filename>/usr/local/etc/php.ini-recommended</filename> to
+	  <filename>/usr/local/etc/php.ini</filename> and do some tweaks
+	  for use on production servers.  Please consult the PHP website
+	  for more information.</para></note>
+
           <para>Once completed, a simple call to the
             <command>apachectl</command> command for a graceful
             restart is needed to load the <acronym>PHP</acronym>

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Mar 26 20:50:55 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94969 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Sun Mar 26 20:55:52 UTC 2006 
State-Changed-Why:  
This is actually a docs PR, but ale should probably comment on its 
correctness one way or the other. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94969 
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Sat May 12 14:21:30 UTC 2007 
State-Changed-Why:  
PHP will run perfectly fine with no php.ini, using the defaults. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94969 
>Unformatted:
