Date: Mon, 12 May 2008 10:14:40 -0700 From: Fred Condo <fcondo@quinn.com> To: nicolas@nicoelro.net Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Apache and Environment Message-ID: <ABEFB3E1-8DE3-476E-BDCF-E903132DAF18@quinn.com> In-Reply-To: <482696F8.9090401@nicoelro.net> References: <482696F8.9090401@nicoelro.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail-1-377046502 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On May 10, 2008, at 11:49 PM, Nicolas Letellier wrote: > Hello. > > I use apache13 and php5. When I do a phpinfo(), I can see in > "Environment" sensibles datas when I launch apache in root. I see > all my env variables (as MAIL, TERM, USER, PWD, LOGNAME, EDITOR, > OSTYPE, LANG, etc, etc...). So, we see informations about user who > launched apache. > > When apache is launched as boot (with apache_enable="YES"), I don't > see these informations. I only see: > > HOME / > PATH /sbin:/bin:/usr/sbin:/usr/bin > RC_PID 39 > PWD / > > This is OK. There is no critical informations. > > How could I launch apache and mask these informations? I must reboot > to have this default datas, else I see environment data about the > user who lauch it. > > Thanks. > -- > - Nicolas. Instead of just $ su do this: $ su - root This will give you only root's environment. Then do your startup command for apache. -- Fred --Apple-Mail-1-377046502--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ABEFB3E1-8DE3-476E-BDCF-E903132DAF18>