Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2004 19:41:27 +0100
From:      Roman Neuhauser <neuhauser@chello.cz>
To:        Stijn Hoop <stijn@win.tue.nl>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: getting all versions of php (mod,cli,cgi)?
Message-ID:  <20040316184127.GA15477@isis.wad.cz>
In-Reply-To: <20040316135026.GE11578@pcwin002.win.tue.nl>
References:  <20040316123701.GB11578@pcwin002.win.tue.nl> <20040316135026.GE11578@pcwin002.win.tue.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
# stijn@win.tue.nl / 2004-03-16 14:50:27 +0100:
> On Tue, Mar 16, 2004 at 01:37:01PM +0100, Stijn Hoop wrote:
> > The PHP docs say that you can build both CLI & CGI versions at the same
> > time by doing
> > 
> > ./configure --enable-cli=${PREFIX} --enable-cgi=${PREFIX}/www/cgi-bin
> 
> And like most of the time, the PHP docs get it wrong :( This doesn't work,
> explaining the need for the different ports. This Sucks.

    Oh really?

    % tar xjf /usr/ports/distfiles/php-4.3.4.tar.bz2
    % cd php-4.3.4
    % PREFIX=/opt/php ./configure \
      --enable-cli=${PREFIX} \
      --enable-cgi=${PREFIX}/www/cgi-bin \
      && make
    % sapi/cgi/php -v
    PHP 4.3.4 (cgi) (built: Mar 16 2004 19:31:02)
    Copyright (c) 1997-2003 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
    % sapi/cli/php -v
    PHP 4.3.4 (cli) (built: Mar 16 2004 19:31:04)
    Copyright (c) 1997-2003 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040316184127.GA15477>