From owner-freebsd-questions@FreeBSD.ORG Mon Aug 16 16:17:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D21D16A4CE for ; Mon, 16 Aug 2004 16:17:58 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FCA543D41 for ; Mon, 16 Aug 2004 16:17:57 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i7GGHkwU085953 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 Aug 2004 17:17:46 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i7GGHk3h085952; Mon, 16 Aug 2004 17:17:46 +0100 (BST) (envelope-from matthew) Date: Mon, 16 Aug 2004 17:17:45 +0100 From: Matthew Seaman To: John Cholewa Message-ID: <20040816161745.GA85600@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , John Cholewa , freebsd-questions@freebsd.org References: <4120D6FA.5010702@jc-news.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline In-Reply-To: <4120D6FA.5010702@jc-news.com> User-Agent: Mutt/1.5.6i X-Greylist: Message not sent from an IPv4 address, not delayed by milter-greylist-1.5.3 (smtp.infracaninophile.co.uk [0.0.0.0]); Mon, 16 Aug 2004 17:17:46 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040705, clamav-milter version 0.74a on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Any problems with php 4.3.8_2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2004 16:17:58 -0000 --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--