You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tom Allison <ta...@tacocat.net> on 2006/06/05 02:01:30 UTC

[users@httpd] ENV missing in fastCGI

I need a little help understanding how to configure my fastCGI.

I am moving some perl applications from CGI to FastCGI.

But there is no %ENV variable available in my FastCGI scripts.

Can not find much on the configuration or directives on fastcgi.  There are 
directives in the apache2 documentation online but a fair whack of it doesn't 
pass apache2ctl -t so I'm not sure what I'm supposed to do with that.

An example of this is under FastCgiConfig, there is no auto-update that is 
recognized.  I pulled this information from www.fastcgi.com/mod_fastcgi/docs/
I assumed that using a directive like
AutoUpdate
would do it, but it didn't.  At least it isn't treated like a typical Apache 
Directive.

Is there some boneheaded thing I'm overlooking here?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ENV missing in fastCGI

Posted by Tom Allison <ta...@tacocat.net>.
Eric Covener wrote:
> On 6/4/06, Tom Allison <ta...@tacocat.net> wrote:
> 
>> An example of this is under FastCgiConfig, there is no auto-update 
>> that is
>> recognized.
> 
> 
>> I assumed that using a directive like
>> AutoUpdate
>> would do it, but it didn't.  At least it isn't treated like a typical 
>> Apache
>> Directive.
>>
>> Is there some boneheaded thing I'm overlooking here?
> 
> 
> -autoUpdate is literally an argument to the FastCGIConfig directive, as in
> LoadModule fastcgi_module modules/mod_fastcgi.so
> ...
> FastCgiConfig -autoUpdate -idle-timeout 10
> 

Thank you.
I did find my %ENV problem.  I don't have a $ENV{USER} variable defined.
How/Where is this created?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ENV missing in fastCGI

Posted by Eric Covener <co...@gmail.com>.
On 6/4/06, Tom Allison <ta...@tacocat.net> wrote:
> An example of this is under FastCgiConfig, there is no auto-update that is
> recognized.

> I assumed that using a directive like
> AutoUpdate
> would do it, but it didn't.  At least it isn't treated like a typical Apache
> Directive.
>
> Is there some boneheaded thing I'm overlooking here?

-autoUpdate is literally an argument to the FastCGIConfig directive, as in
LoadModule fastcgi_module modules/mod_fastcgi.so
...
FastCgiConfig -autoUpdate -idle-timeout 10

It only pertains to dynamic applications, which are applications for which no
explicit FastCGIServer or FastCGIExternalServer are in your httpd.conf

Static servers are started at initialization time with their own set
of parameters.  Dynamic servers are started when a request comes in
that dosn't match an external or static server but is served by the
mod_fastcgi handler.  The policy of spawning/killing these dynamic
processes is based on the filename of the request and the "global"
FastCGIConfig settings.
External servers are not managed by mod_fastcgi, and may be running on
another box entirely and listening for fastcgi connections.


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org