getting all versions of php (mod,cli,cgi)?
Stijn Hoop
stijn at win.tue.nl
Tue Mar 16 11:12:54 PST 2004
On Tue, Mar 16, 2004 at 07:41:27PM +0100, Roman Neuhauser wrote:
> # 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
Hey, great! Actually I tried to make it work within the port so it seems
that some other option is in the way (--with-apache maybe).
And anyway one would hope that the port could support this.
Thanks for proving me wrong, I was getting a bit frustrated here ;-)
--Stijn
--
"An adult is a child who has more ethics and morals, that's all."
-- Shigeru Miyamoto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040316/71a599ab/attachment.bin
More information about the freebsd-ports
mailing list