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

Re: Installing writable configuration files for an Apache module.

On Sat, Mar 15, 2003 at 11:04:15PM +0000, Steve Kemp wrote:
> On Sun, Mar 16, 2003 at 12:07:12AM +0200, Kalle Kivimaa wrote:
> > Are the files purely written by Apache or are they configuration
> > files? If the latter, then I think they should reside in /etc.
> > Otherwise I think /var/lib is the correct place for them.
>   Both unfortunately.
>   There's a couple of site-wide configuration files which appear
>  to be read only, and a tree of user files.  (One for each user
>  registered upon the site, etc).
>   Unfortunately these files must reside in the same location,
>  so splitting them into a conf file and some data files doesn't
>  appear to be an option.

you could use symlinks. put all the files in /var/lib/whatever, and put
symlinks in /etc.

> > Shouldn't they be installed as whatever user Apache is running as when
> > installed out of the box (or you could even parse the httpd.conf in
> > your postinst)? Then only Apache should be able to modify them, unless
> > the local administrator has decided otherwise.

shouldnt you just install with whatever apache does by default
(www-data)? that way you dont have to do any parsing in your postinst.


Attachment: pgpqzkumTCEx5.pgp
Description: PGP signature

Reply to: