apache2 location

Scott Haneda talklists at newgeo.com
Tue Feb 24 20:25:17 PST 2009


On Feb 24, 2009, at 7:45 PM, Bill Hernandez wrote:

> Scott,
>
> Please don't change it.

I do not have any intentions of creating a new port :)  I was just  
asking for clarification on the history of this issue.

> I wish mysql, pgsql, php were setup in individual directories like  
> apache2.

And if that were the case, this would make more sense to me, not  
enough to change my opinion on it, but more sense, none the less.  As  
it is now, apache1 and apache2 are the only things I know putting  
stuff there. I wonder why named, dovecot, postfix, and all the rest  
are not there, this one stands out.

> That was one of the niceties of installing them individually in /usr/ 
> local
>
> /usr/local/apache
> /usr/local/mysql
> /usr/local/pgsql
> /usr/local/php

But ports has taken the tree deeper down, so that is not a one for one  
analogy.  /opt/local sort of becomes / when you are in /opt/local.   
There is the same file layout, of etc, bin, var, and more, just as you  
see in /.

Even on OS X, apache 1 and 2 live in /etc, named lives in /var,  
nothing at all lives in /.

> It may not work as well with shared resources, etc. but there is  
> something really nice about going to one folder and finding  
> everything you need for one application. symlinks can address any  
> difficulties.

You suggestion for symblinks is valid, I believe, for *my* case.  In  
that if apache2 lives in /opt/local/etc or other appropriate place,  
you can symblink all your mysql, php, pgsql and the like up to /opt/ 
local

Right now /opt/local is clean, further, MacPorts does print a small  
error, that I still worry is burdensome to some users.

I have a feeling I am going to stand alone on this one, which is fine,  
I have no intention of pushing it, this was just to find out why this  
was chosen, and why it was not caught as in violation of suggested  
layouts.  There is even a patch where the violate_mtree option was  
added in trac.  Not that long ago either, where did apache 2 install  
prior to that?

I am so far, not hearing any compelling reasons why this is a good  
exception to the rule, other than muscle memory for the current  
location.

> Thanks for the efforts...


Thanks for your reply, I appreciate it.
--
Scott

* If you contact me off list replace talklists@ with scott@ *







More information about the macports-users mailing list