Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 2004 17:17:45 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        John Cholewa <freebsd-questions@jc-news.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Any problems with php 4.3.8_2
Message-ID:  <20040816161745.GA85600@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <4120D6FA.5010702@jc-news.com>
References:  <4120D6FA.5010702@jc-news.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 16, 2004 at 11:47:06AM -0400, John Cholewa wrote:
> Hi,
>=20
> I upgraded the php4 port on this 4.8-RELEASE box to 4.3.8_2.  I'm also=20
> using apache+mod_ssl-1.3.31+2.8.19.
>=20
> When the lines
>=20
> LoadModule php4_module        libexec/apache/libphp4.so
> AddModule mod_php4.c
>=20
> are uncommented, apache segfaults on startup.
>=20
> We're not in a position to upgrade to a newer version of FreeBSD, given=
=20
> that this box is a thousand miles away from us and I, being a novice in=
=20
> many respects, am considered the unquestioned unix/bsd/etc expert in=20
> this company (sadly, I wear too many hats for my employers to become=20
> genuinely experienced in any one thing).
>=20
> I read in a recent post that installing php5 seems to be something that=
=20
> you install *instead* of "mod_php5 and "php5-cli".  Does the same apply=
=20
> for php4?  I ask because I have "mod_php4-4.3.8_2,1", "php4-4.3.8_2" and=
=20
> "php4-cli-4.3.8_2" installed here (as listed in "/var/db/pkg", all=20
> installed from ports)
>=20
> Has anything simlar to what I've described been reported with newer=20
> versions of php?  Might I have installed conflicting packages?  Any=20
> suggestions will be welcomed.  :)

Hmmm... well, the structure of the php4 ports parallels the structure
of the php5 ports, so yes you are correct that you shouldn't have all
of the packages installed simultaneously.  If you try and install that
combination with an up to date ports tree it will complain:

    % cd /usr/ports/lang/php4
    % make -V CONFLICTS
    php4-cli-4* mod_php4-4* php4-cgi-4* php5-5* php5-cli-5* mod_php5-5* php=
5-cgi-5*

Unless you've been deliberately ignoring warnings, the only way you
can end up with that sort of situation is by updating a system from
before the CONFLICTS mechanism was introduced.  Since the whole
CONFLICTS thing is about not installing ports that all lay claim to
various files, the symptom you see of PHP causing apache to segfault
could well be a consequence.  Another way in which you can get into
trouble is to install a php *package* from the FTP sites: the package
will have been compiled against the plain non-ssl version of apache,
and that is significantly different internally to the mod_ssl version
you're using.  So long as you compile the php stuff yourself,
everything should work OK with whatever version of apache you choose.

I suggest that you deinstall all PHP related ports (anything with php
or pecl in the name) and start again from scratch just installing the
minimum that you need.  With the new ports framework it's very easy to
add extension modules, should you find that you need to.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--n8g4imXOkfNTN/H1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (FreeBSD)

iD8DBQFBIN4piD657aJF7eIRAgS+AKCYlWgqfIm/2K+h8YuPibTb/wOncQCfQKP3
/F1hUqv6llwhAFULJbQBwpw=
=lpPX
-----END PGP SIGNATURE-----

--n8g4imXOkfNTN/H1--



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