Mailing List Archive

Apache upgrade wiped out site
I had a simple index.html set up on a pretty vanilla apache/gentoo
installation that ran for a couple months until a week ago I noticed an
upgrade for apache and ran emerge apache. My index.html is gone... other
dir's are still there such as webalizer, phpbb, etc. so I guess my question
is does apache or emerge itself make a back up copy of things that are
changed/moved/deleted during an emerge? Anyone have any thoughts?

Thanks
DG

--
gentoo-user@gentoo.org mailing list
Re: Apache upgrade wiped out site [ In reply to ]
quoth the Connector Email:
> I had a simple index.html set up on a pretty vanilla apache/gentoo
> installation that ran for a couple months until a week ago I noticed an
> upgrade for apache and ran emerge apache. My index.html is gone... other
> dir's are still there such as webalizer, phpbb, etc. so I guess my question
> is does apache or emerge itself make a back up copy of things that are
> changed/moved/deleted during an emerge? Anyone have any thoughts?
>
> Thanks
> DG

Yes, when you upgrade apache it drops all the index.html.xx files and apache
images into your document root (usually /var/www/localhost/htdocs/) as though
it were a new install.

I have been lucky because my files are *.php, so they do not get overwritten,
I just remove the new files after updating. To prevent this you can change
your Document Root to another directory. I am not sure if Gentoo has some
native way of preventing this (such as CONFIG_PROTECT for conf files).

You can also manually backup the files prior to updating apache. As for
getting your index.html file back, I don't think you will have much joy.

Hopefully someone can chime in with a more elegant solution to see that these
files don't get clobbered.

-d

--
Part of the problem since 1976
http://badcomputer.no-ip.com
Get my public key from
http://keyserver.linux.it/pks/lookup?op=index&search=bulliver
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
Re: Apache upgrade wiped out site [ In reply to ]
> Yes, when you upgrade apache it drops all the index.html.xx files and apache
> images into your document root (usually /var/www/localhost/htdocs/) as though
> it were a new install.

That is indeed the case. I filed the following bug at the request of
one of the devs on IRC:

http://bugs.gentoo.org/show_bug.cgi?id=63465

So far there's been no response.

Paul

--
gentoo-user@gentoo.org mailing list
Re: Apache upgrade wiped out site [ In reply to ]
perhaps your doc root should be added to CONFIG_PROTECT


On Wed, 15 Sep 2004 20:56:40 +0000
Paul Waring <pwaring@gmail.com> wrote:

> > Yes, when you upgrade apache it drops all the index.html.xx files and apache
> > images into your document root (usually /var/www/localhost/htdocs/) as though
> > it were a new install.
>
> That is indeed the case. I filed the following bug at the request of
> one of the devs on IRC:
>
> http://bugs.gentoo.org/show_bug.cgi?id=63465
>
> So far there's been no response.
>
> Paul
>
> --
> gentoo-user@gentoo.org mailing list

--
Nick Rout <nick@rout.co.nz>


--
gentoo-user@gentoo.org mailing list
RE: Apache upgrade wiped out site [ In reply to ]
Well, jeez, I sort of figured that as a given... it shouldn't require much
foresight to not touch anything with-in docroot.

-----Original Message-----
From: Nick Rout [mailto:nick@rout.co.nz]
Sent: Wednesday, September 15, 2004 4:01 PM
To: gentoo-user@lists.gentoo.org; Paul Waring
Subject: Re: [gentoo-user] Apache upgrade wiped out site

perhaps your doc root should be added to CONFIG_PROTECT


On Wed, 15 Sep 2004 20:56:40 +0000
Paul Waring <pwaring@gmail.com> wrote:

> > Yes, when you upgrade apache it drops all the index.html.xx files and
apache
> > images into your document root (usually /var/www/localhost/htdocs/) as
though
> > it were a new install.
>
> That is indeed the case. I filed the following bug at the request of
> one of the devs on IRC:
>
> http://bugs.gentoo.org/show_bug.cgi?id=63465
>
> So far there's been no response.
>
> Paul
>
> --
> gentoo-user@gentoo.org mailing list

--
Nick Rout <nick@rout.co.nz>


--
gentoo-user@gentoo.org mailing list

--
gentoo-user@gentoo.org mailing list