Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2008 23:15:30 +0100
From:      Albert Shih <Albert.Shih@obspm.fr>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        Jerry McAllister <jerrymc@msu.edu>, freebsd-questions@freebsd.org
Subject:   Re: PATH problem
Message-ID:  <20081110221530.GD48874@obspm.fr>
In-Reply-To: <4918AD5C.4060005@infracaninophile.co.uk>
References:  <20081110110805.GK1302@obspm.fr> <20081110161002.GA81960@gizmo.acns.msu.edu> <20081110203643.GH27646@obspm.fr> <4918AD5C.4060005@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081110221530.GD48874>