On 31/07/2015 8:18 AM, Ryan Ollos wrote:
> On Thu, Jul 30, 2015 at 12:13 PM, bcostacurta <
bcost...@gmail.com
> <mailto:
bcost...@gmail.com>> wrote:
>
> Hi Ryan,
>
> I did not test the ~/.profile.d you mentioned and refered in the
> Trac forums
> However I find this confusing : to which user does the ~ refers to ?
>
>
> You'd either put the export statement in ~/.profile, or a script with
> the export statement in /etc/profile.d
>
> In the case of the former, ~ would be the home directory of whatever
> user you are running tracd under. I guess this wouldn't work in the case
> of running Apache webserver with user www-data.
It seems (in Ubuntu server) you can export environment variables for
www-data in Apache's own envvars file.
Maybe this is "global" and can't be used for vhosts. But maybe vhost
envvars files can be used? I'm not an Apache person.
Is there any reason to avoid this?
Thanks
Mike
>
> I haven't tested whether a script in /etc/profile.d that exported the
> variable would be visible to user www-data.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Trac Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
trac-users+...@googlegroups.com
> <mailto:
trac-users+...@googlegroups.com>.
> To post to this group, send email to
trac-...@googlegroups.com
> <mailto:
trac-...@googlegroups.com>.
> Visit this group at
http://groups.google.com/group/trac-users.
> For more options, visit
https://groups.google.com/d/optout.