Hi Ian, the default is in yaws.hrl:

php_handler = {cgi, "/usr/bin/php-cgi"}

For FCGI you want:

php_handler = <fcgi, Host:Port>

Also, page 55 of the Yaws PDF file at http://yaws.hyber.org/yaws.pdf mentions you can tell php5-cgi to use FCGI using the -b option, e.g.:

php5-cgi -b ’’


On Mon, Apr 7, 2014 at 7:40 PM, Ian <yaws@poetmail.net> wrote:
Hi Steve, I doubt that it's a bug. It's much more likely related to the fact that I don't really know how to use php[5]-fpm. Lots of people have this problem though and I'm sure I'll get to the bottom of it. Seems like Daniel has already figured out that side of the equation.

What you can help with is tell me how & where Yaws' default php handler is set.

Previously I needed to add

    php_handler = <cgi, /usr/lib/cgi-bin/php5>

to each server config but this has proven to be unnecessary in v1.98 so this must now set by default somewhere and I probably need to change it - Yaws is currently talking directly to the plain cgi php interpreter unaware of the existence of the fpm.