spawn-fcgi script change port listen to unix-socket
先だって、nginxに移行したのだけど、fcgiの設定をport listenからunix-socketを利用するように修正した。 それと同時に、spawn-fcgiの設定とinitctlでの設定を見直してみた。
- spawn-fcgiでの指定で子プロセスの起動を3に。
- initctlでの管理のために、no-forkモードで起動するように。
/etc/init/php-fastcgi.conf
# php-fastcgi - starts php-cgi as an external FASTCGI process
start on runlevel [2345]
stop on runlevel [06]
exec /usr/bin/spawn-fcgi -n -C 3 -s /tmp/php_fastcgi.socket -u www -g www-data -f /usr/bin/php5-cgi