Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 2014 15:14:32 +0100
From:      Matthew Seaman <matthew@freebsd.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Apache 2.4, mod_php5 and php5_extensions from latest ports
Message-ID:  <53FF3948.80508@freebsd.org>
In-Reply-To: <53FF2AEE.7030501@fjl.co.uk>
References:  <53FF2AEE.7030501@fjl.co.uk>

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

On 08/28/14 14:13, Frank Leonhardt wrote:
> The problem comes with the php5_extensions. I've got Apache up and
> running, with the www/mod_php5 port working but when I compile and
> install lang/php5-extensions (or any of its components), Apache barfs o=
n
> start-up. I'm not a PHP person so I'm a bit out of my depth here.
>=20
> First off, it couldn't find any of the extensions because it was lookin=
g
> in:
>=20
> /usr/local/lib/php/20100525-zts
>=20
> The extensions installed in the same directory, but without the -zts
> tag, so I put in a symbolic link (wishful thinking!). Now it's finding
> them but each module produces either one or other of the warnings below=
:

You've turned on the Zend Thread Safety option in at least one of the
PHP ports, but not in all of them.  The rule with ZTS is that either you
turn it on everywhere, or you turn it off everywhere.  To fix:

    # cd /usr/ports/lang/php5
    # make config
    (change the options as required)
    # cd /usr/ports/www/mod_php5
    # make config
    (ditto)

Then rebuild and reinstall php5, mod_php5 and all of your php
extensions. This step is perhaps somewhat overkill, but if you do this,
you can be sure everything will work OK.  (It should be possible to get
away with recompiling only some of those ports, but you'll need to work
out which ones for yourself.)

	Cheers,

	Matthew



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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJT/zleXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw
MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTntXAP/31MoX0ia08eOUBOTCkosBLp
+WEK0Kfd0nyGT+Z0rMvkmjPHDv8LvOL961Ed03NqnrJGdoT+bQ/iwEf3vnQqrTRP
gdmFmvxjVLEfmjeF12ZGvUrkm7sg38VU04cRmIKXGO3YCGxRbI588KT0ru0n0j7Z
RfDSpiT9Wh1TX3KUpWlyrrifyudUNFNp2DxY53EeF5f+RA+bLow8c6DXsRc65jOS
gZQW6VamaZfbiAuzDs6rZtFddyHDQiD3tFJJMuUIj19QzubMOtgJi/T8uxdAYyzF
vYwchuqSr32LlSCWMeIQ4/uofqkM9bw/HAr00ACH8JsLujBerO3A69RNr/Phd/LK
Lu1de80LXNOD6vQ80Lr0ZgFK7fXUFg/bQoZkHAsKo6xi2FkeAWDWiCmi8U3L7Q3p
ZbDdlgErzeLvZLvlEJaEKyKesrTHrmviappCYH3eRdaOjsWxSFwzguNa8Hfgb+pT
rXWdzPgbVUuyB6TvuUQqN8D8FkzRKXlHvvxcCi5m7Na8HCvxM/IrozD4ynoyMJ4S
2BOG8FzN3gZv2wn7pBlj9mcWLyg0kyk6eTHVYLRwzwBsOutwl37tamsaEwoBUuyj
NrJQzsNRW9XWdIOipZ36aWENjfJfrT48z8vHaPlb/r8KlWBnasHht37YGpY8VkSY
+0ricoxGxp2z4lGub8ye
=A4mf
-----END PGP SIGNATURE-----

--Pxa0IsAggBsD9LvD2tfEbsVJfQhKH8AD0--



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