<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Php-Fpm Init.d Init Script</title>
	<atom:link href="http://bookmarks.honewatson.com/2008/11/28/php-fpm-initd-init-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://bookmarks.honewatson.com/2008/11/28/php-fpm-initd-init-script/</link>
	<description>I bring you the best from the web - random bookmarks.</description>
	<lastBuildDate>Fri, 14 Oct 2011 13:38:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Alex</title>
		<link>http://bookmarks.honewatson.com/2008/11/28/php-fpm-initd-init-script/#comment-1464</link>
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Sat, 21 May 2011 14:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/11/28/php-fpm-initd-init-script/#comment-1464</guid>
		<description><![CDATA[Thanks a lot! Exactly what i&#039;m looking for!]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot! Exactly what i&#8217;m looking for!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vito Botta</title>
		<link>http://bookmarks.honewatson.com/2008/11/28/php-fpm-initd-init-script/#comment-1147</link>
		<dc:creator><![CDATA[Vito Botta]]></dc:creator>
		<pubDate>Tue, 21 Jul 2009 22:53:52 +0000</pubDate>
		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/11/28/php-fpm-initd-init-script/#comment-1147</guid>
		<description><![CDATA[Hi! Many thanks for this post, very useful info.
I have a couple of questions I hope you can help with:

1) With your script all seems to work fine, but after a while my web application has been in idle, PHP-FPM somehow shuts down and I have to start it manually for PHP pages to work again, otherwise all what I get is &quot;502/bad gateway&quot; with Nginx.
Any suggestions?

2) I found another script, which I paste below, from http://www.johnyerhot.com/2008/02/12/how-to-nginx-fcgi-php-mysql-ruby-on-rails-rewrite-vhosts/.
If I use this script it works the same, but I read fastcgi in there while in your script I read cgi. What is the actual difference?

Thanks!

#!/bin/bash
PHP_SCRIPT=/usr/bin/php-fastcgi
RETVAL=0
case $13 in
start)
$PHP_SCRIPT
RETVAL=$?
;;
stop)
killall -9 php
RETVAL=$?
;;
restart)
killall -9 php
$PHP_SCRIPT
RETVAL=$?
;;
*)
echo Usage: php-fpm {start&#124;stop&#124;restart}
exit 1
;;
esac
exit $RETVAL]]></description>
		<content:encoded><![CDATA[<p>Hi! Many thanks for this post, very useful info.<br />
I have a couple of questions I hope you can help with:</p>
<p>1) With your script all seems to work fine, but after a while my web application has been in idle, PHP-FPM somehow shuts down and I have to start it manually for PHP pages to work again, otherwise all what I get is &#8220;502/bad gateway&#8221; with Nginx.<br />
Any suggestions?</p>
<p>2) I found another script, which I paste below, from <a href="http://www.johnyerhot.com/2008/02/12/how-to-nginx-fcgi-php-mysql-ruby-on-rails-rewrite-vhosts/" rel="nofollow">http://www.johnyerhot.com/2008/02/12/how-to-nginx-fcgi-php-mysql-ruby-on-rails-rewrite-vhosts/</a>.<br />
If I use this script it works the same, but I read fastcgi in there while in your script I read cgi. What is the actual difference?</p>
<p>Thanks!</p>
<p>#!/bin/bash<br />
PHP_SCRIPT=/usr/bin/php-fastcgi<br />
RETVAL=0<br />
case $13 in<br />
start)<br />
$PHP_SCRIPT<br />
RETVAL=$?<br />
;;<br />
stop)<br />
killall -9 php<br />
RETVAL=$?<br />
;;<br />
restart)<br />
killall -9 php<br />
$PHP_SCRIPT<br />
RETVAL=$?<br />
;;<br />
*)<br />
echo Usage: php-fpm {start|stop|restart}<br />
exit 1<br />
;;<br />
esac<br />
exit $RETVAL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hate php</title>
		<link>http://bookmarks.honewatson.com/2008/11/28/php-fpm-initd-init-script/#comment-1087</link>
		<dc:creator><![CDATA[hate php]]></dc:creator>
		<pubDate>Thu, 19 Feb 2009 18:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/11/28/php-fpm-initd-init-script/#comment-1087</guid>
		<description><![CDATA[Thanks dude! came in handy.]]></description>
		<content:encoded><![CDATA[<p>Thanks dude! came in handy.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

