To add PHP under Yaws 1.98, I simply installed php5-cgi and it worked
without any config.
Trouble is, PHP as CGI isn't very efficient - you get a fresh process
for every request so you have the full overhead each time and things
like opcache won't work.
Is there is a better way to use PHP under Yaws?
I was wondering if perhaps anyone has tried Davide's solution with any
success - http://sourceforge.net/p/erlyaws/mailman/message/24175544/ -
although that project doesn't seem to have been updated since 2009.