[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PHP application packaging policy/best practice?



Quoting Kees Leune <cjleune@gmail.com>:

> Hi,
> 
> I am preparing an ITP for a PHP application that is currently under
> development at my place of employment. While thinking about packaging
> it, I was wondering if there is any PHP application policy or best
> practice. I am now leaning to a setup as follows:
> 
> /usr/lib/appname/php      Publicly loadable PHP pages
> /usr/lib/appname/lib        Included PHP libraries (not reachable via
> httpd)
> /var/lib/appname             Persistant data
> /etc/appname/appname.cfg Configuration
> /etc/appname/apache.conf   Apache configuration (symlink from
> /etc/apache/conf.d)
> 
> Note that I chose /usr/lib over /usr/share because according to the
> FHS, /usr/share is meant for "all read-only architecture independent
> data files". Although PHP files are read-only and architecture
> indepedent, I consider them as programs.
> 
> Any thoughts?

Horde and its associated applications install to /usr/share, if that makes
any difference to you.

-Roberto Sanchez

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



Reply to: