From owner-freebsd-questions@FreeBSD.ORG Mon May 12 17:33:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCA6B1065671 for ; Mon, 12 May 2008 17:33:29 +0000 (UTC) (envelope-from fcondo@quinn.com) Received: from sushi.quinn.com (sushi.quinn.com [216.27.181.95]) by mx1.freebsd.org (Postfix) with ESMTP id 9F4EF8FC1D for ; Mon, 12 May 2008 17:33:29 +0000 (UTC) (envelope-from fcondo@quinn.com) Received: from red.quinn.com (sashimi.quinn.com [216.27.181.11]) (authenticated bits=0) by sushi.quinn.com (8.14.2/8.14.2) with ESMTP id m4CHEjeE003114 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 12 May 2008 10:14:45 -0700 (PDT) (envelope-from fcondo@quinn.com) Message-Id: From: Fred Condo To: nicolas@nicoelro.net In-Reply-To: <482696F8.9090401@nicoelro.net> Content-Type: multipart/signed; boundary=Apple-Mail-1-377046502; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v919.2) Date: Mon, 12 May 2008 10:14:40 -0700 References: <482696F8.9090401@nicoelro.net> X-Mailer: Apple Mail (2.919.2) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Questions Subject: Re: Apache and Environment X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 17:33:30 -0000 --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--