[Catalyst] FCGI engine and environment variables

Jess Robinson castaway at desert-island.demon.co.uk
Sun Aug 6 18:52:07 CEST 2006


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




More information about the Catalyst mailing list