PATH for www-data user

Tom H tomh0665 at gmail.com
Sun Jun 23 15:45:29 UTC 2013


On Sun, Jun 23, 2013 at 7:31 AM, gvim <gvimrc at gmail.com> wrote:
>
> When I run a Perl cgi script locally from the browser the www-data user's
> ENV contains:
>
> PATH = /usr/local/bin:/usr/bin:/bin
>
> But neither /etc/apache2/envvars nor /etc/environment provide the key to
> this mystery:
>
> /etc/apache2/envvars : no PATH specified
> /etc/environment :
> PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
>
> Pray tell which dark force hath dominion over this setting.

ENV="env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin"
in
/etc/init.d/apache2




More information about the ubuntu-users mailing list