ports/94969: about install php or mod_php and handbook

50g citygrit at gmail.com
Sun Mar 26 15:30:17 UTC 2006


>Number:         94969
>Category:       ports
>Synopsis:       about install php or mod_php and handbook
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 26 15:30:14 GMT 2006
>Closed-Date:
>Last-Modified:
>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 at 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
     </IfModule></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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list