PHP4 port won't output Content type when run as CGI script

Kevin Kinsey, DaleCo, S.P. kdk at daleco.biz
Wed May 7 08:34:32 PDT 2003


From: "Gabriel Ambuehl" <gabriel_ambuehl at buz.ch>
To: "Roman Neuhauser" <neuhauser at bellavista.cz>
Cc: <questions at freebsd.org>
Sent: Wednesday, May 07, 2003 9:40 AM
Subject: Re[2]: PHP4 port won't output Content type when run as CGI
script


> -----BEGIN PGP SIGNED MESSAGE-----
>
> Hello Roman,
>
> Wednesday, May 7, 2003, 4:29:37 PM, you wrote:
>
>
> >     roman at freepuppy ~ 1002:1 >
> ./install/php/php-4.3.2RC1/sapi/cli/php -v
> >     PHP 4.3.2-RC1 (cli) (built: Mar 22 2003 02:52:56)
> >     Copyright (c) 1997-2003 The PHP Group
> >     Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
>
> >     roman at freepuppy ~ 1003:1 >
> ./install/php/php-4.3.2RC1/sapi/cgi/php -v
> >     PHP 4.3.2-RC1 (cgi), Copyright (c) 1997-2003 The PHP Group
> >     Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
>
>
> Acutally I'm sure I'm using the CLI edition. I have no clue why the
> CGI
> edition doesn't get installed in first place cause when I build the
> source myself (i.e. not by port) it works perfectly. IMNSHO,
there's
> something wrong about the port not installing CGI as well. Maybe as
> php.cgi alongside php (CLI)?
>
> I know that in the past, there actually was an option to install
the
> CGI version but that was removed some time ago. So am I supposed to
> build PHP from sources now to get CGI functionality?
>
> Best regards,
>  Gabriel

The CLI version of PHP>4.3.0 now runs as with the
-q  switch by default.  When building from source, PHP
now builds both a CLI and a CGI version in seperate
subdirs under the ./sapi/ folder, so you may already have
it available...just install it, if you want.  'Course, it'd
be better from ports, I guess...

HTH,  Kevin Kinsey




More information about the freebsd-questions mailing list