From owner-freebsd-questions@FreeBSD.ORG Mon Nov 10 22:15:33 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 408A61065670 for ; Mon, 10 Nov 2008 22:15:33 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from blade2-ext.obspm.fr (blade2-ext.obspm.fr [145.238.186.8]) by mx1.freebsd.org (Postfix) with ESMTP id CDF2B8FC26 for ; Mon, 10 Nov 2008 22:15:32 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from obspm.fr (pcjas.obspm.fr [145.238.184.233]) by blade2-ext.obspm.fr (8.13.8/8.13.8/SIO Observatoire de Paris - 15/11/07) with ESMTP id mAAMFUXP017379 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 10 Nov 2008 23:15:31 +0100 Date: Mon, 10 Nov 2008 23:15:30 +0100 From: Albert Shih To: Matthew Seaman Message-ID: <20081110221530.GD48874@obspm.fr> References: <20081110110805.GK1302@obspm.fr> <20081110161002.GA81960@gizmo.acns.msu.edu> <20081110203643.GH27646@obspm.fr> <4918AD5C.4060005@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4918AD5C.4060005@infracaninophile.co.uk> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (blade2-ext.obspm.fr [145.238.186.20]); Mon, 10 Nov 2008 23:15:31 +0100 (CET) X-Virus-Scanned: ClamAV 0.94/8601/Mon Nov 10 22:00:37 2008 on blade2-ext.obspm.fr X-Virus-Status: Clean Cc: Jerry McAllister , freebsd-questions@freebsd.org Subject: Re: PATH problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Albert.Shih@obspm.fr List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 22:15:33 -0000 Le 10/11/2008 à 21:53:32+0000, Matthew Seaman a écrit > Albert Shih wrote: > > > Maybe my question is not very clear.... > > > > The p5 package work in shell, because the PATH is in the shell. > > > > 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. > > If you're using mod_perl2, then Apache will default to setting up the > environment perl sees as if perl was running as a separate CGI script. > See: > > http://perl.apache.org/docs/2.0/user/config/config.html#C_SetupEnv_ > > (defaults to 'On') > > You can modify the perl environment from httpd.conf using PerlSetEnv > or PerlPassEnv. See: > > http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlSetEnv_ > http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlPassEnv_ > > Assuming you do mean $PATH -- the executable search path -- that should > be sufficient to fix your problem. If you're really after $PERL5INC -- > the path to search for perl modules -- while you can use PerlSetEnv to > set that, it's special-cased not to be passed through when running in > taint-checking mode. It's generally cleaner to have a startup.pl > script you require from the Apache conf, and that can have a BEGIN { } > block where you modify @INC before loading modules. See > > http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlConfigRequire_ > > or (preferably): > > http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlPostConfigRequire_ > > which does much the same thing as a perl 'require' statement -- the > difference between the two being that PerlPostConfigRequire happens > somewhat later in the configuration process. YESSSSSSSS..... It's working. Lots of thanks. Regards. -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex Heure local/Local time: Lun 10 nov 2008 23:14:44 CET