I tried to follow this one through.  From what I can see the FCGI engine 
assigns the ENV information into a private variable %env.  it then 
attempts to pass that to handle_request.  handle_request passes the 
information to prepare() and then prepare doesn't do what it's supposed 
to (i suspect).

Either this is something which someone added by mistake, or someone 
started to impliment $c->env and forgot to finish it :)




Jess Robinson wrote:
> Hi folks,
>
> I'm attempting to run one of my Cat apps as an fcgi under apache, using 
> the following:
>
>    SetEnv DB2DIR /opt/IBM/db2/V8.1
>    SetEnv DB2INSTANCE missys
>    SetEnv INSTHOME /home/missys
>
> FastCgiServer  /mnt/shared/projects/money/Budget/script/budget_fastcgi.pl 
> -idle-timeout 30 -processes 3
>
> Alias /budget /mnt/shared/projects/money/Budget/script/budget_fastcgi.pl
>
> However, the code in the Budget app fails to be able to connect to the DB2 
> database, as the variables I'm setting don't get passed through to its 
> environment. The only thing in ENV is the Catalyst Engine setting.. How do 
> I get FCGI to pass through apache env vars?
>
> I've changed it to set %ENV in Budget.pm, but thats not an ideal solution 
> :(
>
> (Other normal .cgi apps can see these SetEnv vars just fine..)
>
> Jess
>
>
> _______________________________________________
> List: [email protected]
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to