
vincenzo.romano at notorand
Jan 25, 2010, 9:18 AM
Post #3 of 4
(410 views)
Permalink
|
|
Re: fastcgi configuration for C/C++ language applications
[In reply to]
|
|
2010/1/25 Alvaro Lopez Ortega <alvaro [at] octality>: > On 25/01/2010, at 17:56, Vincenzo Romano wrote: > >> I've found some documentation () that seems to be valid for PHP only. >> How can I set up the fastcgi environment for C/C++ (aka "native") applications? > > Here a library you might find handy: > > http://www.fastcgi.com/dist/fcgi.tar.gz > >> I've found something in the cherokee-admin page for the virtual servers. >> Is there something else, for example, to control the number of >> children processes and so on? > > No. The web server can not command your FastCGI application. It's up to you how you'd like your application to behave, actually. > > For instance, php-cgi. It launches a number of child processes based on the value of the PHP_FCGI_CHILDREN environment variable. Whether your application spawns one or a hundred worker processes (or threads) depends entirely on your needs. > > Independently of all those details, the server will connect to the same socket (TCP or Unix) and rely the same requests on it. The dispatching, response time and scale capabilities of your FastCGI application will be greatly influenced by those technical decisions though. > > Cheers, Thanks for the answer. I already have my FastCGI applications coming from a previous Apache environment and have never put the hands on PHP, so I have no idea about what you mention. On the previous environment I could configure the fastcgi spawner with a number of parameters. How can I do the same in Cherokee? -- Vincenzo Romano NotOrAnd Information Technologies NON QVIETIS MARIBVS NAVTA PERITVS _______________________________________________ Cherokee mailing list Cherokee [at] lists http://lists.octality.com/listinfo/cherokee
|