Re: [Catalyst] Problem with Catalyst 5.8 and mod_perl 2

2012-07-29 Thread Peter Flanigan
On 29/07/12 15:10, linuxsupport wrote: I have setup mod_geoip in Apache which creates environment variable GEOIP_COUNTRY_CODE I am not able to get this variable in catalyst controller, I have tried getting it form %ENV. Have you specified Passenv?

Re: [Catalyst] Problem with Catalyst 5.8 and mod_perl 2

2012-07-29 Thread linuxsupport
Yes PassEnv GEOIP_COUNTRY_CODE I dumped the %ENV, and got following [debug] $VAR1 = 'PATH'; $VAR2 = '/sbin:/usr/sbin:/bin:/usr/bin'; $VAR3 = 'MOD_PERL_API_VERSION'; $VAR4 = 2; $VAR5 = 'MOD_PERL'; $VAR6 = 'mod_perl/2.0.4'; On Sun, Jul 29, 2012 at 7:57 PM, Peter Flanigan p...@roxsoft.co.uk

Re: [Catalyst] Problem with Catalyst 5.8 and mod_perl 2

2012-07-29 Thread Hailin Hu
http://perl.apache.org/docs/2.0/user/config/config.html#C_modperl_ modperl doesn't set %ENV like CGI be default. you can use PerlPassEnv. On Sun, Jul 29, 2012 at 11:48 PM, linuxsupport lin.supp...@gmail.com wrote: Yes PassEnv GEOIP_COUNTRY_CODE I dumped the %ENV, and got following [debug]

Re: [Catalyst] Problem with Catalyst 5.8 and mod_perl 2

2012-07-29 Thread linuxsupport
I tried PerlPassEnv GEOIP_COUNTRY_CODE but still not getting it in %ENV On Sun, Jul 29, 2012 at 8:39 PM, Hailin Hu i...@h2l.name wrote: http://perl.apache.org/docs/2.0/user/config/config.html#C_modperl_ modperl doesn't set %ENV like CGI be default. you can use PerlPassEnv. On Sun, Jul 29,

Re: [Catalyst] Problem with Catalyst 5.8 and mod_perl 2

2012-07-29 Thread Hailin Hu
Are you sure GEOIP_COUNTRY_CODE does exist? On Mon, Jul 30, 2012 at 12:18 AM, linuxsupport lin.supp...@gmail.com wrote: I tried PerlPassEnv GEOIP_COUNTRY_CODE but still not getting it in %ENV On Sun, Jul 29, 2012 at 8:39 PM, Hailin Hu i...@h2l.name wrote:

Re: [Catalyst] Problem with Catalyst 5.8 and mod_perl 2

2012-07-29 Thread linuxsupport
Yes, I am using it in PHP On Sun, Jul 29, 2012 at 9:04 PM, Hailin Hu i...@h2l.name wrote: Are you sure GEOIP_COUNTRY_CODE does exist? On Mon, Jul 30, 2012 at 12:18 AM, linuxsupport lin.supp...@gmail.com wrote: I tried PerlPassEnv GEOIP_COUNTRY_CODE but still not getting it in %ENV