NYCPHP Meetup

NYPHP.org

[nycphp-talk] where in filesystem to install php application

Eddie Drapkin oorza2k5 at gmail.com
Wed Jul 1 12:29:00 EDT 2009


On Wed, Jul 1, 2009 at 12:01 PM, Michael Hernandez<sequethin at gmail.com> wrote:
> On Wed, 2009-07-01 at 11:54 -0400, Ajai Khattri wrote:
>> On Wed, 1 Jul 2009, Michael Hernandez wrote:
>>
>> > I worry that using /usr/local for stuff might
>> > end up with an accidental delete or overwrite by the package manager.
>>
>> Why? System packages never install into /usr/local. Traditionally,
>> /usr/local has always been for "local" stuff. When I build stuff from
>> source, I generally will install everything in /usr/local.
>>
>> Most Linux distros generally follow the FHS standard, see:
>> http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY
>>
>>
>>
>
> I only say that because there is stuff in /usr/local on my ubuntu system
> that I didn't put there (at least not manually), and /opt is completely
> empty.
>
> --Mike H
>

Holy hell, I totally misinterpreted the question, so you can go ahead
and ignore that previous email (unless you want to have several
versions of PHP installed at once ;]).

If there's more than one site running the same software:

/home/user/software/ <--- the repository for the actual software
/home/user/webroots/ <--- the repository for the static files and
symlinks to the software that are app specific

Every application that I run is a new user that doesn't have
permission to r/w out of its /home/ so that collaboration with people
on several projects means no one's snooping anyone else's sourcecode.
The apache user is in all of their groups, for obvious reasons :P



More information about the talk mailing list