Forum Moderators: phranque

Message Too Old, No Replies

FastCGI

How to setup Apache for FastCGI?

         

Mareq

11:49 am on Jul 17, 2005 (gmt 0)

10+ Year Member



I have succesfully configured my Apache for CGI scripts, but I want FastCGI. I have heard something about mod_fastcgi module, which I have had compiled with Apache, but it seems, it is still accepting CGI, not FastCGI scripts...
Is there some HOWTO for FastCGI? Could anybody tell me how can I determine, whether my Apache is accepting FastCGI rather than CGI scirpts? Is there andything about FastCGI on the net (except the only site, I found: [fastcgi.com...] )? Thx...

moltar

2:59 pm on Jul 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Did you name your scripts with .fcg extension?

Mareq

3:05 pm on Jul 17, 2005 (gmt 0)

10+ Year Member



No, I did not, but is it necessary? Could not I name my script as I wish, like when using CGI? (According to Apache configuration, of course.)
I do not have my Apache configured for FastCGI, yet, because I do not have idea how to do that. The only thing I have done is that I compiled mod_fastcgi with Apache...

moltar

2:57 pm on Jul 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In the White Paper [fastcgi.com] on the site you mentioned it says:

The WebServer treats any file with the extension .fcg as a FastCGI application. When a request corresponds to such a file, the WebServer creates a new FastCGI process to handle the request, and shuts down the process when the request is complete (just as in CGI). In this mode of operation performance is comparable to CGI. Future versions of the WebServer will improve performance by automatically caching processes and re-using them for subsequent requests.