getting all versions of php (mod,cli,cgi)?

Roman Neuhauser neuhauser at chello.cz
Tue Mar 16 10:41:12 PST 2004


# stijn at 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


More information about the freebsd-ports mailing list