From owner-freebsd-questions@FreeBSD.ORG Wed Oct 22 17:05:11 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C0751065676 for ; Wed, 22 Oct 2008 17:05:11 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from pih-relay04.plus.net (pih-relay04.plus.net [212.159.14.17]) by mx1.freebsd.org (Postfix) with ESMTP id 053698FC16 for ; Wed, 22 Oct 2008 17:05:10 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from [84.92.153.232] (helo=curlew.milibyte.co.uk) by pih-relay04.plus.net with esmtp (Exim) id 1Ksh8u-0000lO-LR; Wed, 22 Oct 2008 18:05:08 +0100 Received: by curlew.milibyte.co.uk with local (Exim 4.69) (envelope-from ) id 1Ksh8u-0005OM-3B; Wed, 22 Oct 2008 18:05:08 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Wed, 22 Oct 2008 18:05:07 +0100 User-Agent: KMail/1.9.10 References: <200810221556.28731.jmc-freebsd2@milibyte.co.uk> <48FF43D8.6010209@infracaninophile.co.uk> In-Reply-To: <48FF43D8.6010209@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810221805.08009.jmc-freebsd2@milibyte.co.uk> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); SAEximRunCond expanded to false X-Plusnet-Relay: 534a3b3095768cb257f7d443e8da5308 Cc: Subject: Re: Can't upgrade or deinstall phpMyAdmin X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2008 17:05:12 -0000 On Wednesday 22 October 2008, Matthew Seaman wrote: > Hmmm... not entirely sure what has actually gone wrong there, but I > suspect your /var/db/pkg directory is probably in a bit of a mess. > =A0Deinstalling phpMyAdmin is simply a matter of removing almost all of > the files under /usr/local/www/phpMyAdmin -- the only one the port > tries to preserve is config.inc.php Yes, I knew phpMyAdmin kept all its files in one place so replacing it=20 with the new version by hand was possible if all else failed but the=20 ports system would have still thought it had version 2 and I was rather=20 unsure what problems the inconsistency might create later. =2E > Can you try: > > ~ =A0 # pkg_delete -f phpMyAdmin-2.11.5.2 Yes, I'd already done that with the same segfault. > If the worst comes to the worst, you can do this (which is certainly > *not* recommended in the general case, just it happens to work for > phpMyAdmin which is a port without other things depending on it, and > that installs everything into one directory): > > ~ =A0 # cd /usr/local/www > ~ =A0 # cp phpMyAdmin/config.inc.php /root > ~ =A0 # rm -rf phpMyAdmin > ~ =A0 # cd /var/db/pkg > ~ =A0 # rm -rf phpMyAdmin-2.11.5.2 > ~ =A0 # pkgdb -F That did the trick, thanks for the help. > Note: there's no need to reinstall phpMyAdmin because you've upgraded > Apache or even PHP. =A0phpMyAdmin is all native PHP code and identical > on disk for whatever combination of PHP interpreter and web server > you use. =A0You just need to copy the Apache config stuff into the new > httpd.conf (ie. based on what 'pkg_info -Dx phpMyAdmin' produces). Yes, but in this case I'd moved my web server temporarily onto another=20 machine while I (slowly) upgraded the hardware on this box, hence the=20 removal of Apache and PHP. After getting the new hardware back into=20 service I installed the newer versions of Apache and PHP, it was just=20 by chance that there was still a copy of phpMyAdmin on the system but=20 in view of the security vulnerability in 2.11.5.2 I thought I'd better=20 replace it with 3.0.0_1. =2D-=20 Mike Clarke