From owner-freebsd-questions@FreeBSD.ORG Mon Nov 10 21:35:52 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 9D1151065676 for ; Mon, 10 Nov 2008 21:35:52 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 6AFAC8FC08 for ; Mon, 10 Nov 2008 21:35:52 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id ECC45AFC1C7; Mon, 10 Nov 2008 12:35:50 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org, Albert.Shih@obspm.fr Date: Mon, 10 Nov 2008 22:35:44 +0100 User-Agent: KMail/1.9.7 References: <20081110110805.GK1302@obspm.fr> <20081110161002.GA81960@gizmo.acns.msu.edu> <20081110203643.GH27646@obspm.fr> In-Reply-To: <20081110203643.GH27646@obspm.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811102235.46971.fbsd.questions@rachie.is-a-geek.net> Cc: Jerry McAllister Subject: Re: PATH problem 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, 10 Nov 2008 21:35:52 -0000 On Monday 10 November 2008 21:36:43 Albert Shih wrote: > But when I use the application throught the web it's not working. But I > don't known how to tell apache ? mod_perl ? the PATH. Apache. Check the shell script /usr/local/sbin/envvars. In short, any file in /usr/local/etc/apache22/envvars.d is sourced into the start up environment of apache, through /usr/local/etc/rc.d/apache22 start up script. Unless a module or script explicitly cleans the environment before forking an external program, the variabels set at start up are preserved. The following should work for you: echo "export PATH=$PATH" > /usr/local/etc/apache22/envvars.d/PATH You may want to clean out the path a bit more, pending your security policies. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.