Date: Wed, 19 Jun 2002 06:47:20 -0500 From: Chip Norkus <wd@arpa.com> To: freebsd-questions@FreeBSD.ORG Subject: Re: portupgrade of Apache deletes my web site? Message-ID: <20020619064720.A42225@arpa.com> In-Reply-To: <20020619114001.GA33071@freebsd.schema.ca>; from pandaro@freebsd.schema.ca on Wed, Jun 19, 2002 at 05:40:01AM -0600 References: <3D0FA627.3020300@freebsd.schema.ca> <20020619090221.Q16224-100000@server.hermes-comp.zp.ua> <20020619114001.GA33071@freebsd.schema.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020619064720.A42225>