From owner-freebsd-doc@FreeBSD.ORG Thu Dec 24 00:50:07 2009 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79086106568B for ; Thu, 24 Dec 2009 00:50:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3C0448FC1D for ; Thu, 24 Dec 2009 00:50:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBO0o7pA072704 for ; Thu, 24 Dec 2009 00:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBO0o7aY072703; Thu, 24 Dec 2009 00:50:07 GMT (envelope-from gnats) Resent-Date: Thu, 24 Dec 2009 00:50:07 GMT Resent-Message-Id: <200912240050.nBO0o7aY072703@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Igor Galić" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B766110656AA for ; Thu, 24 Dec 2009 00:48:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id A53D18FC12 for ; Thu, 24 Dec 2009 00:48:00 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nBO0m0co022585 for ; Thu, 24 Dec 2009 00:48:00 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nBO0m0Nq022584; Thu, 24 Dec 2009 00:48:00 GMT (envelope-from nobody) Message-Id: <200912240048.nBO0m0Nq022584@www.freebsd.org> Date: Thu, 24 Dec 2009 00:48:00 GMT From: "Igor Galić" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/141937: FreeBSD Handbook on Apache/PHP needs updating X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 00:50:07 -0000 >Number: 141937 >Category: docs >Synopsis: FreeBSD Handbook on Apache/PHP needs updating >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Dec 24 00:50:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Igor Galić >Release: >Organization: >Environment: >Description: There are two issues I have noticed in this document http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-apache.html On is the section on VirtualHosts, the other on how to configure PHP. The VirtualHost section is merely imprecise: ``NameVirtualHost *'' covers all interfaces and all ports, thus it's *very* ambiguous. The second issue is with the PHP configuration, which is plain wrong. AddType is something to communicate the mime-type to the browser. (See http://www.devside.net/articles/php as an example discussion for the why.) Also it's quite silly to have a section right after a LoadModule, much more so, twice for two directives. >How-To-Repeat: Take a look at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-apache.html >Fix: The virtualhost section should be replaced with: NameVirtualHost *:80 And: ServerName www.domain.tld DocumentRoot /www/domain.tld ServerName www.someotherdomain.tld DocumentRoot /www/someotherdomain.tld The PHP section can be simplified to: LoadModule php5_module libexec/apache/libphp5.so DirectoryIndex index.php index.html SetHandler application/x-httpd-php ## Optionally, pretty Source-Rendering: # # SetHandler application/x-httpd-php-source # In general: You can, by now, refer to the PHP documentation: http://php.net/manual/en/install.unix.apache2.php >Release-Note: >Audit-Trail: >Unformatted: