From owner-freebsd-questions Wed Mar 27 10:19: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mobil.cz (diana.mobil.cz [194.228.200.160]) by hub.freebsd.org (Postfix) with ESMTP id 285FD37B417 for ; Wed, 27 Mar 2002 10:19:02 -0800 (PST) Received: from ester.mobil.cz (ester.mobil.cz [194.213.62.23]) by mobil.cz (8.11.6/8.11.0) with ESMTP id g2RIJ0820970; Wed, 27 Mar 2002 19:19:00 +0100 Received: from roman.mobil.cz ([10.2.0.89]) by ester.mobil.cz (Lotus Domino Release 5.0.9a) with ESMTP id 2002032719184607:6846 ; Wed, 27 Mar 2002 19:18:46 +0100 Received: (from roman@localhost) by roman.mobil.cz (8.11.6/8.11.6) id g2RIXbD25367; Wed, 27 Mar 2002 19:33:37 +0100 (CET) (envelope-from neuhauser@mobil.cz) X-Authentication-Warning: roman.mobil.cz: roman set sender to neuhauser@mobil.cz using -f Date: Wed, 27 Mar 2002 19:33:37 +0100 From: Roman Neuhauser To: "Sean O'Neill" Cc: freebsd-questions Subject: Re: PHP4 Port build for standalone AND apxs binaries ??? Message-ID: <20020327183337.GP389@roman.mobil.cz> Mail-Followup-To: Sean O'Neill , freebsd-questions References: <5.1.0.14.0.20020327112651.00ae5690@postoffice.swbell.net> <5.1.0.14.0.20020327112651.00ae5690@postoffice.swbell.net> <5.1.0.14.0.20020327114214.00ad4878@postoffice.swbell.net> Mime-Version: 1.0 In-Reply-To: <5.1.0.14.0.20020327114214.00ad4878@postoffice.swbell.net> User-Agent: Mutt/1.3.26i X-MIMETrack: Itemize by SMTP Server on ester/Mobil(Release 5.0.9a |January 7, 2002) at 03/27/2002 07:18:46 PM, Serialize by Router on ester/Mobil(Release 5.0.9a |January 7, 2002) at 03/27/2002 07:18:52 PM, Serialize complete at 03/27/2002 07:18:52 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Date: Wed, 27 Mar 2002 11:46:45 -0600 > To: Roman Neuhauser > From: "Sean O'Neill" > Subject: Re: PHP4 Port build for standalone AND apxs binaries ??? please don't top-post. and never remove the list address! > At 06:48 PM 3/27/2002 +0100, you wrote: > >> Date: Wed, 27 Mar 2002 11:28:12 -0600 > >> To: freebsd-questions@freebsd.org > >> From: Sean O'Neill > >> Subject: PHP4 Port build for standalone AND apxs binaries ??? > >> > >> Can someone give me the sequence to install both the PHP4 standalone > >> binary and Apache apxs binaries please ? > >> > >> I'm a bit confused how to do it but I need both. > > > > ./configure --with-apxs=/path/to/installed/apxs > > will create mod_php4, without that you'll get the CLI (Command Line > > Interface) version. > > Basically done that and its installed with mods to Apache in place to > use it. > > The mod_php4 port Makefile references a STANDALONE variable to make > the standalone version. But I'm confused how to use it now that > mod_php4 is already installed and registered in the pkg DB. Actually, > I don't really know how to "define" it at the command line either - > maybe ???: > > cd /usr/ports/www/mod_php4 > make -DSTANDALONE > > But even if this is correct, how does this now interact with the > Apache mod_php4 module already registered in the pkg DB? yup, you can define that variable with either make install -DSTANDALONE or make install STANDALONE=1 as for the double install problem: you can add -DFORCE_PKG_REGISTER to the make command line, but that'll make it hard for you to remove the previous install files later: the plist will get overwritten, listing e. g. /usr/local/bin/php instead of /usr/local/lib/mod_php4.so (or wherever it is). what I'd recommend is copy the port skeleton, and hack the makefile to create another port (which should be done anyway)... a few seconds later: nice, it's been done already. see /usr/ports/lang/php4/. -- FreeBSD 4.4-STABLE 7:24PM up 3 days, 3:10, 16 users, load averages: 0.07, 0.04, 0.00 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message