From owner-freebsd-questions@FreeBSD.ORG Thu Oct 23 06:59:58 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 5AD0C106567C for ; Thu, 23 Oct 2008 06:59:58 +0000 (UTC) (envelope-from valentin.bud@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.235]) by mx1.freebsd.org (Postfix) with ESMTP id 29AE08FC1D for ; Thu, 23 Oct 2008 06:59:58 +0000 (UTC) (envelope-from valentin.bud@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so188188rvf.43 for ; Wed, 22 Oct 2008 23:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=KqETLQQWaXZgyCZ52+XCSlWr0R1OSCeml6+S4HfSi8E=; b=YuwkEZHkUJn45QxwPLzRn1CfIQb3q3ehbyqVqRkJafBeki2NRkBkL0oluUe0v3LAXA yOW5X6VdZeRe1+ug/ZLKDQ4qb6NQxV0Df4fVefHIMydVKkn/7BEN83ut96OTNnFlcMUB 5kVf2EKPrNwfTr5CQNB49e0FrJV1EILFehBKU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=aHw1A+S7h5anttNKi39GUZC0yndWvwsle2/e8O4qh2ILejIw+05pmbJ//AUFkyEzXr fpJH0bmLNQnRnQ9rkUh1PLThtL/TuX+VTTYCBZuDZkp4O4cU7kiqTbnTifgRd9NQcedu 8t5ZR2jv1Sij22yVzIYA6W+sofQQPffES8R28= Received: by 10.142.139.19 with SMTP id m19mr127247wfd.154.1224745197769; Wed, 22 Oct 2008 23:59:57 -0700 (PDT) Received: by 10.142.154.10 with HTTP; Wed, 22 Oct 2008 23:59:57 -0700 (PDT) Message-ID: <139b44430810222359r41a24fb0o893cfd5a7d1e1ca2@mail.gmail.com> Date: Thu, 23 Oct 2008 08:59:57 +0200 From: "Valentin Bud" To: "Mike Clarke" In-Reply-To: <200810221805.08009.jmc-freebsd2@milibyte.co.uk> MIME-Version: 1.0 References: <200810221556.28731.jmc-freebsd2@milibyte.co.uk> <48FF43D8.6010209@infracaninophile.co.uk> <200810221805.08009.jmc-freebsd2@milibyte.co.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org 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: Thu, 23 Oct 2008 06:59:58 -0000 May i ask a question. Why do you use phpmyadmin from ports? It installs lots of libraries hence possible security threats in the future. So instead of taking care of updating a bunch of libraries just for phpmyadmin why don't you simply download it from http://www.phpmyadmin.net/, put in the apache doc root, set it up and so you have to take care to update it when a new version comes out. my 2 cents, v On Wed, Oct 22, 2008 at 7:05 PM, Mike Clarke wrote: > 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. > > Deinstalling 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 > with the new version by hand was possible if all else failed but the > ports system would have still thought it had version 2 and I was rather > unsure what problems the inconsistency might create later. > . > > Can you try: > > > > ~ # 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): > > > > ~ # cd /usr/local/www > > ~ # cp phpMyAdmin/config.inc.php /root > > ~ # rm -rf phpMyAdmin > > ~ # cd /var/db/pkg > > ~ # rm -rf phpMyAdmin-2.11.5.2 > > ~ # 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. phpMyAdmin is all native PHP code and identical > > on disk for whatever combination of PHP interpreter and web server > > you use. You 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 > machine while I (slowly) upgraded the hardware on this box, hence the > removal of Apache and PHP. After getting the new hardware back into > service I installed the newer versions of Apache and PHP, it was just > by chance that there was still a copy of phpMyAdmin on the system but > in view of the security vulnerability in 2.11.5.2 I thought I'd better > replace it with 3.0.0_1. > > -- > Mike Clarke > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >