NYCPHP Meetup

NYPHP.org

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

Hans Zaunere lists at zaunere.com
Wed Jul 1 11:04:50 EDT 2009


> Perhaps this is one of those things that doesn't matter a helluva lot,
> but:  when you have a freshly installed Debian-style LAMP (actually
> Ubuntu server 9.04) and you are looking for a place in the filesystem
> to install your PHP application files -- where do you like to put them?
> /usr/local/share/... ? Or /usr/local/lib/php/... ? /opt/...?

Assuming a fairly well organized application:

/usr/local/include/php/com.domainname.www   <-- backend code

/var/www/www.domainname.com   <-- document root/front-end/css/images/js/etc

Why?  Yeah, because I'm crazy...

> It's nice if it isn't /something/too/terribly/hideously/long/to/type
> although there are always shortcuts, like environment vars.

And symlinks.

H





More information about the talk mailing list