yes:
$ ls -al /var/lib/hiawatha/
total 12
drwx------ 3 www-data www-data 4096 Oct 7 00:57 .
drwxr-xr-x 40 root root 4096 Oct 6 23:34 ..
srw-rw---- 1 www-data www-data 0 Oct 7 00:57 php5-fcgi.sock
here are the php-fpm processes:
root 4773 0.0 0.9 110740 20284 ? Ss Oct07 0:39 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
www-data 4775 0.0 0.3 110740 6224 ? S Oct07 0:00 php-fpm: pool www
www-data 4776 0.0 0.3 110740 6224 ? S Oct07 0:00 php-fpm: pool www
www-data 4777 0.0 0.3 110740 6224 ? S Oct07 0:00 php-fpm: pool www
and php-fpm conf file in php5/fpm/pool.d/www.conf:
[www]
user = www-data
group = www-data
listen = /var/lib/hiawatha/php5-fcgi.sock
listen.owner = www-data
listen.group = www-data
pm = static
pm.max_children = 3
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
chdir = /
and hiawatha settings:
ServerId = www-data
ConnectionsTotal = 1000
ConnectionsPerIP = 25
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log
CGIhandler = /usr/bin/php5-cgi:php,php5
CGIextension = cgi
FastCGIserver {
FastCGIid = PHP5
ConnectTo = /var/lib/hiawatha/php-fcgi.sock
Extension = php
}
VirtualHost {
...
TimeForCGI = 120
# ExecuteCGI = yes
UseFastCGI = PHP5
...
}
I cant rememeber if executecgi and usefastcgi are both supposed to be present or only one, but in any case i tried it both ways with no success. Not sure what im missing because it seems pretty straight forward with a unix socket.