Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Feb 2012 10:08:01 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: apache22 + php5 (package not ports) ~ spawn-fcgi ?
Message-ID:  <4F44BE81.9060109@infracaninophile.co.uk>
In-Reply-To: <CAJxePNLnAj1awtTfWRy7AZ9O0vvnWs4F-4bmCMVWMUop4VQroQ@mail.gmail.com>
References:  <CAJxePNKk9Zna9mFoHqmfYHvGkkDLNGvh%2BUSpucb=3rS-xAHiwA@mail.gmail.com> <CE7203F4-DF96-44D5-A509-801E93370F60@mac.com> <CAJxePNJNvbkaXJJZvAopyH6Dp6%2BdZdmB2VJDO8hi__qNY2z4eg@mail.gmail.com> <ji1stc$fha$1@dough.gmane.org> <CAJxePNLnAj1awtTfWRy7AZ9O0vvnWs4F-4bmCMVWMUop4VQroQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig20B88836C0538065876E1AB0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 22/02/2012 05:13, alexus wrote:
> thank you for your respond - that's my plan b
> i'd like to know if i can exercise my plan a first:
> i already have installed apache22, php5 as package (pkg_add) without
> having them build through /usr/ports (i know how everyone likes ports
> around here).
> i want to see if it's possible to have a link between apache22 and
> php5 with using packages only (i.e. without /usr/ports) and since
> mod_php is mia for whatever reason(s) i want to see if fastcgi can be
> used and PHP-FPM isn't available in packages too (i'm start thinking
> packages sucks comparing to /usr/ports) basically my last resort (at
> least that i know of to try) is to go with spawn-fcgi. i dont have
> alot of requirements but i do need apache22 + php5 to talk to each
> others and i want to know if it can be done with pkg_add vs /usr/ports

It is true that packages are really quite lacking compared to ports.  I
doubt that it would ever be possible to create pre-compiled packages
that provide the same level of flexibility and configurability as you
get with ports, but that doesn't mean there are not a large number of
improvements that could be made.

That packages are not really up to the required standard is well known
amongst FreeBSD users, but somehow always seems to come as an unpleasant
surprise to new users.  If there is a certain detectable note of
asperity in the way we say "just use the ports -- it's easy, and fun for
all the family" that's because we keep on having to say the same thing
over and over.  Eventually we'll get fed up with telling people there's
no demand, and provide a pkg system more in line with their
expectations.  Moves are already afoot -- http://wiki.freebsd.org/pkgng
-- but it's going to take some time before that has any material effects
on end-user experience.

As to your specific problem: yes, it is a cause of contention that
mod_php is not enabled in the default php5 package.  I don't entirely
understand why the port maintainer made that decision.  php-fpm is not
enabled by default either, because it is still considered experimental
code in the currently available php5-5.3.10_1 -- I read that it will no
longer be considered experimental in php 5.4 but you're going to have to
wait until that gets released.

Have you considered nginx + spawn-fcgi?  Or lighttpd (with its built-in
fastcgi support)? I think those should work entirely through available
packages, and should be at least competitive in performance with apache
+ whatever-PHP.  Usually nginx or lighttpd pretty much smoke apache
performance-wise, but they are lot simpler and much smaller applications
so not quite as capable of doing everything apache can.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW


--------------enig20B88836C0538065876E1AB0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9EvokACgkQ8Mjk52CukIxB7ACeLOSNVQNoD4jd5KhRtUt5ir1O
Z2oAn3Ok9kalPpCLNav2wCv2GmjwUaBQ
=b+uz
-----END PGP SIGNATURE-----

--------------enig20B88836C0538065876E1AB0--



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