Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
why not in /usr/local
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
bluesky
Apprentice
Apprentice


Joined: 14 Aug 2002
Posts: 230
Location: USA

PostPosted: Fri Nov 22, 2002 6:38 pm    Post subject: why not in /usr/local Reply with quote

What are the(good) reasons to set the defaults installation for apache in /etc? This will definitely cause problem when you reinstall gentoo.

Why not set it to /usr/local? :x
_________________
bluesky

"free as the wind"
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Nov 22, 2002 7:07 pm    Post subject: Re: why not in /usr/local Reply with quote

bluesky wrote:
What are the(good) reasons to set the defaults installation for apache in /etc?

The configuration files are in /etc. The DocumentRoot is in /home/httpd/htdocs, by default, but you can put it where you like. I tend to choose /var/www, because I liked it when Debian changed to that from /home/www-data/wwwdocs. CONFIG_PROTECT protects /etc/, which is nice.

Quote:
This will definitely cause problem when you reinstall gentoo.

Why?

Quote:
Why not set it to /usr/local? :x

Because /usr/local is reserved for locally installed applications, and the base operating system is not supposed to put things in there. :x

There is a big discussion of a related issue about filesystem layout in /usr/local.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
bluesky
Apprentice
Apprentice


Joined: 14 Aug 2002
Posts: 230
Location: USA

PostPosted: Fri Nov 22, 2002 7:42 pm    Post subject: re: /usr/local Reply with quote

[quoted]
>This will definitely cause problem when you reinstall gentoo.

Why?
[quoted}

Reason is if you have a separate /usr/local partition then it is untouched when you reinstall gentoo. :x

I thought it is obvious?
_________________
bluesky

"free as the wind"
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Nov 22, 2002 7:52 pm    Post subject: Reply with quote

Are you complaining about the location of the configuration files or the default setting of DocumentRoot?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
bluesky
Apprentice
Apprentice


Joined: 14 Aug 2002
Posts: 230
Location: USA

PostPosted: Fri Nov 22, 2002 8:21 pm    Post subject: re: /usr/local Reply with quote

If the servers are all in a separate partition /usr/local then when we reinstall gentoo, we do not have to reinstall them.
_________________
bluesky

"free as the wind"
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Nov 22, 2002 8:48 pm    Post subject: Reply with quote

rac wrote:
Are you complaining about the location of the configuration files or the default setting of DocumentRoot?


EDIT: the general /usr/local discussion has gone to /usr/local redux. Followups on that issue to /usr/local, please.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
green_buddy
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2003
Posts: 115
Location: Bay Area, CA

PostPosted: Fri Jan 17, 2003 6:56 pm    Post subject: Re: why not in /usr/local Reply with quote

rac wrote:
The DocumentRoot is in /home/httpd/htdocs, by default, but you can put it where you like. I tend to choose /var/www, because I liked it when Debian changed to that from /home/www-data/wwwdocs.


Is moving htdocs as simple as doing the following:
Code:
mv /httpd <whatever/dir/i/want>

and then modifying the DocumentRoot setting in /etc/apache/conf/apache.conf to be
Code:
DocumentRoot <whatever/dir/i/want>
:?:

Is there a way to do this during the emerge process?

Thanks in advance,
-green
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum