Re: [SMARTY-DEV] Smarty Name Conflicts
| From: | messju mohr | Date: | Fri, 30 Jan 2004 08:19:37 +0000 |
| Subject: | Re: [SMARTY-DEV] Smarty Name Conflicts | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2079@lists.php.net to get a copy of this message | ||
On Thu, Jan 29, 2004 at 10:24:44PM -0600, Jason Sweat wrote:
> From: "Christopher Stauffer" <chris@staufferinc.com>
> > Later, when another template is compiled by an end user executing a
> file
> > through the web(done under apache default user "nobody"), there is an
> error
> > writing to the directory that was created from the cron job execution
> from
> > earlier.
> >
>
> I solved a similar issue by making the php cli binary be owned by the
> web user, and set the user sticky bit. I then used the
> http://us4.php.net/manual/en/function.posix-seteuid.php to
> change to the
> web user if I detected that I was running in the CLI mode.
>
> HTH
Another way would be to put nobody and the cronjob-user in the same
group and ensure writability of templates_c via group-permissions
(chmod 770).