From owner-freebsd-questions@FreeBSD.ORG Wed Jun 27 08:34:16 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C0B3C16A400 for ; Wed, 27 Jun 2007 08:34:16 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.freebsd.org (Postfix) with ESMTP id 41AFA13C48A for ; Wed, 27 Jun 2007 08:34:14 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.5) with ESMTP id SAA16384; Wed, 27 Jun 2007 18:33:08 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Wed, 27 Jun 2007 18:33:07 +1000 (EST) From: Ian Smith To: Daniel Molina Wegener In-Reply-To: <20070626194941.AA8D616A484@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Cc: freebsd-questions@freebsd.org Subject: Re: Verifying PHP support X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 08:34:16 -0000 On Tue, 26 Jun 2007 11:49:51 -0400 (CLT) "Daniel Molina Wegener" wrote: > El Mar, 26 de Junio de 2007, 10:38, Darryl Hoar escribió: > > Greetings, > > I have a machine with 6.2 release installed on it. > > I have apache 1.3.37 installed and am using it > > for my personal website. I want to install Gallery2 > > for doing photo albums. The pkg info in ports says > > it needs php support. I did a pkg_info -a and did > > not see php installed on my system. How should > > I add php support so that I can install Gallery2 ? > > Ok, it depends on which version of php do you want. I can't remember > exactly where is the port, but you can search for it on /usr/ports > and make search: > > # cd /usr/ports > # make search name=php4 > # make search name=php5 > > If the port is in lang > > # cd /usr/ports/lang/php5 > # make config install clean Yes, remembering to turn ON the Apache module during make config; it's been turned off by default (for some bizarre reason) a couple of years. > The php extensions are installed separatelly. Yes, but not the Apache module, which can only be installed from ports. > If you want binary packages, look for the available package version > at the Makefile in the port directory and install with pkg_add: > > # pkg_add -r 'php5' Which, because building the Apache module is not enabled by default, as above, will only provide PHP CLI and CGI support, but not the desired Apache module .. presumably the reason most people install PHP at all. This will keep on bamboozling folks expecting pkg_add php5 (or php4) to provide PHP support for Apache, until either default build options are changed, or a specific "php5-apache" port (thus package) is created. > > thanks, > > Darryl > > Good luck... > > > > > BTW, on a different machine a while ago, I tried > > installing php after the fact and had a bit of a > > mess on my hands, thus the question. > > [SNIP] Exactly. This will keep on coming up on -questions regularly. Cheers, Ian