Re: [SMARTY] changing template_c ownership
| From: | Rob Schumann | Date: | Tue, 13 Aug 2002 14:35:38 +0000 |
| Subject: | Re: [SMARTY] changing template_c ownership | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5672@lists.php.net to get a copy of this message | ||
Hi Greg,
On 13-08-2002 Greg Elisara wrote:
> problem is, webserver runs under nobody:nobody and smarty
> creates compile subdirectories using this as the owner:group -
> result is chmod failures and nobody:nobody directories i cannot
> do anything with. (i could be wrong here, but i thought if i
> chown'ed templates_c to greg:greg then all subdirs created by
> smarty under templates_c would be greg:greg - my experience
> here tends to suggest otherwise as they are being created as
> nobody:nobody).
I took this up with my host and they were very amenable to accommodating the request... perhaps
yours will too... The recipe is adapted from guidelines supplied by Monte a while back...
chown greg:nobody templates_c
chmod 775 templates_c
chmod g+s templates_c
and the same for the "cache" directory in the same location.
All works perfectly under this arrangement.
Cheers
Rob