View previous topic :: View next topic |
Author |
Message |
jmkf n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 May 2004 Posts: 3
|
Posted: Mon May 24, 2004 10:44 pm Post subject: apache2 update overwrites index.html.* |
|
|
May 8th I performed an updated of the apache2 package (actually world) and I noticed that the index.html.* I updated after the initial install were overwritten by the default ones during the upgrade. Has anyone else noticed this, and what can I do to avoid this in the future? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Chris W l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Ralph.jpg)
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Mon May 24, 2004 10:57 pm Post subject: |
|
|
Either move your document root to somewhere other than /var/www/localhost, or add that directory to CONFIG_PROTECT in /etc/make.conf or on the command line during merges: Code: | # export CONFIG_PROTECT=/var/www/localhosts/htdocs
# emerge -u apache
# etc-update | New files should then appear in the etc-update system. _________________ Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Immortal Q Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/8170390444223fdbe751fc.gif)
Joined: 14 Sep 2003 Posts: 241 Location: Silicone Valley
|
Posted: Mon May 24, 2004 11:52 pm Post subject: |
|
|
My solution is to store my sites as subdirectories of /var/www/localhost/htdocs, which, aside from the obscenely long pathname, works great - all my virtual hosts are arranged properly, and this allows things like horde and phpmyadmin to update cleanly. Does anyone else have any other arrangements that work well? Is there a "Gentoo Way" that works the best? And what else might we put in /var/www besides localhost?
Sorry about all the questions - this has been bugging me for a while. _________________ Osmos.org
Now with 20% fewer rabid primates. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jmkf n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 May 2004 Posts: 3
|
Posted: Tue May 25, 2004 4:06 pm Post subject: |
|
|
I 've added /var/www/kruithof as structure that contains my information to be used on the web, and also updated the configuration files accordingly, avoid this in the future and keeping templates in /var/www/localhost. Probably I should have a look at some other applications as well. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|