Yes ... got the handle on FastCGI ... just wondering if there was '(pseudo-)internal' support in Yaws for it (as per Apache module(s)). 

Have set it up and is working with php-fpm ... well once I clean up all the 'assume I'm running in apache' app stuff it'll be fully working ... then can start migrating parts to erlang 

Thanks

Damien 

On 30/09/2011, at 11:32 AM, Daniel Fahlke wrote:

I think i should describe a bit, what fastCGI is.
If you use CGI, than the server first starts php, execute your php site, and close the parser, after the request finished.
a fastCGI server starts php and listen for requests from the webserver. It does not close php after every request, so you save the startup time of php.
This is, why fastCGI is much faster than CGI, and explains too, why it needs some kind of server.

Now, what does Apache do?
it has mod_fcgid, it does the same as php-fpm. It starts php and hold it open after request has end
A Note beside, there is a problem with mod_fcgid and APC http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html

I think, there should be no performance difference in mod_fcgid vs. php-fpm.
But if i look at the Problem with APC, if this get not solved, you can put the mod_fcgid into trash.


2011/9/30 Damien O'Rourke <damien@enmessage.com>
OK ... thanks ... wasn't aware of that ... was ooking at the spawn-fcgi as an alternative.

Was just wanting to confirm my understanding that Yaws doesn't provide/act as a fastCGI server in and of itself (like Apache + mod_fcgid) so another server of some sort would be needed. I guess then it depends on what percentage of PHP code there is to make migrating from Apache worthwhile i.e. is the performance any better if you're handing off most of the processing to another server or server process anyway? Is the percentage improvement (if any) dependent then on the chosen FastCGI server rather than on Yaws?

Thanks

Damien

On 30/09/2011, at 11:00 AM, flyingmana wrote:

> Hi Damien,
>
> php FastCGI is an own server. Apache does not bundle it, it only has a
> mod to start additional php-fcgi server, if needed.
> Current php versions contain an own manager for fast cgi, called "PHP
> FastCGI Prozess Manager" or short "php-fpm"
> http://de.php.net/manual/en/install.fpm.php
>
> So, php-fcgi will mostly be the same as php-cgi in usage, you only need
> an additional startup script/call
>
> I hope this Answer matched your Question. If you still want something
> to know, try asking again =)
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list