Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2008 18:05:07 +0100
From:      Mike Clarke <jmc-freebsd2@milibyte.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: Can't upgrade or deinstall phpMyAdmin
Message-ID:  <200810221805.08009.jmc-freebsd2@milibyte.co.uk>
In-Reply-To: <48FF43D8.6010209@infracaninophile.co.uk>
References:  <200810221556.28731.jmc-freebsd2@milibyte.co.uk> <48FF43D8.6010209@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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