From owner-freebsd-questions Wed Jun 19 4:47:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from arpa.com (arpa.com [199.245.173.5]) by hub.freebsd.org (Postfix) with ESMTP id 51DE537B406 for ; Wed, 19 Jun 2002 04:47:21 -0700 (PDT) Received: by arpa.com (Postfix, from userid 103) id 78CFFF0406; Wed, 19 Jun 2002 06:47:20 -0500 (CDT) Date: Wed, 19 Jun 2002 06:47:20 -0500 From: Chip Norkus To: freebsd-questions@FreeBSD.ORG Subject: Re: portupgrade of Apache deletes my web site? Message-ID: <20020619064720.A42225@arpa.com> References: <3D0FA627.3020300@freebsd.schema.ca> <20020619090221.Q16224-100000@server.hermes-comp.zp.ua> <20020619114001.GA33071@freebsd.schema.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020619114001.GA33071@freebsd.schema.ca>; from pandaro@freebsd.schema.ca on Wed, Jun 19, 2002 at 05:40:01AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed Jun 19, 2002; 05:40AM -0600 Mike A. Oligny propagated the following: > On June 19, 2002 12:05 am, Alexander V Zubchenko wrote: > > > And, imho, better way is to change DocumentRoot in httpd.conf to > > 'another directory'. > > Yes - I've tried /usr/www and /usr/home/www but I > reverted to /usr/local/www/docs because a couple > other ports I installed went into /usr/local/www > by default; I like to keep web stuff in one place. > Right now I'm using /usr/local/www/docs because it > made sense at the time. Suggestions? > /usr/local/www/data.default doesn't count, and the > first person to suggest /var *will be set on fire. > > > > $make install > > If you are upgrading, the installation will not overwrite your > > configuration files or documents." > > Well, this is true - it doesn't. It just deletes > them. :) > The installer doesn't delete them. The reason 'portupgrade' trashes your stuff is because it *removes* the stuff added by the installer when it does a 'pkg_deinstall'. Yuck. Sadly, you're probably better off doing an upgrade by hand with FORCE_PKG_REGISTER (if you really don't want to put your files elsewhere). I've been bitten by this too. It sucks. :( > Personally, I think this could be in pkg-message, > along with a warning when they start the make > process... I can't remember the last time I looked > at the handbook to build and install a port - not > that it couldn't be there as well. Perhaps it could > even check if data.default has been changed since > last install, and if it has, stop and ask the user > to run install again with some sort of FORCE flag. > The installation actually puts stuff in /usr/local/www/*.default (cgi-bin, data, ...) and symlinks if directories don't already exist for these things. > I see this has been moved to -questions. What is the > -ports directory for? > > -Mike > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -wd -- chip norkus; unix geek and programmer; wd@arpa.com "question = (to) ? be : !be;" --Shakespeare http://telekinesis.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message