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

Re: [PHP] Placement of PHP programs?

On Mon, 02 Sep 2002, Fabien Penso wrote:
>  > As a kind of an adjunct to the other discussion on PHP libraries, what about
>  > PHP programs?  Not quite so touchy, as I can't see a single way forward here
>  > (and there's no blazingly obvious reason to do so).  So what are people's
>  > best thoughts on the matter?  Most packages I've seen put their
>  > web-accessible content in /usr/share/<package>, then either set up a
>  > separate apache config and include it from the main apache config
>  > (phpgroupware does it this way, for one example) while other packages modify
>  > apache.conf more intrusively.  I'm a fan of the phpgroupware method, which
>  > at least minimises pain.

This is probably the best way to do it.

> Shouldn't webpage go to /var/www or at least /var/, and _not_ /usr/share
> ? We are talking about PHP, but it's still webpages after all.

Don't you dare stuff my /var up with constant, non-arch-specific, program
text that should be in /usr in the first place :)

Hint: the fact it is in php4 makes it no more special than anything else.

> The software configuration should stay into the its location, the
> software directory.

As long as this is outside the exported "url-space" of the program.  The
braindamage has to be stopped somewhere...

  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Reply to: