[FASTCGI] FastCGI with Oracle

Tom Bowden charles_thomas at mac.com
Mon Dec 7 08:24:22 EST 2009

 From what I understand you have to specifically set any environment  
variables that you want to use in the configuration (I use apache and  
mod_fcgid ).

The way I look at  -- it is like the taint mode in Perl on steroids.   
perl -T (or perl -w ?) will generate a warning/error if you use  
relative paths or there are any environment variables that are  
considered security risks in your code.  FastCgi handles it by not  
letting you set ANY variables... because that would be a security risk.

There is an example in the API that covers how to set up a connection  
for Oracle.  In my particular applications I have to use PGUSER and  


On Dec 6, 2009, at 9:59 PM, A. M. ArunKumar wrote:

> That what I was also thinking.  Why should FastCGI clear  
> environment variables.  Is there any reason to clear the  
> environment variables?
> Thanks
> Arun
> From: darren.garvey at gmail.com [mailto:darren.garvey at gmail.com] On  
> Behalf Of Darren Garvey
> Sent: Friday, December 04, 2009 6:48 PM
> To: A. M. ArunKumar
> Cc: 李波; fastcgi-developers at mailman.pins.net
> Subject: Re: [FASTCGI] FastCGI with Oracle
> Hi,
> 2009/12/4 A. M. ArunKumar <arun at eagle-india.com>
> Thank you libo (I am not sure about the name, since it shows in  
> chinese language)
> The solution which you gave has helped me.  But its not after  
> accept its before that. we need to set it back in the C++ program.   
> I used the setenv function in c++ and now its connecting to oracle.
> Is this how it is supposed to happen? I don't see why the FastCGI  
> library should clear environment variables for the whole  
> application...
> Regards,
> Darren
> _______________________________________________
> FastCGI-developers mailing list
> FastCGI-developers at mailman.fastcgi.com
> http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20091207/77e5eaa9/attachment.html>

More information about the FastCGI-developers mailing list