https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412006-08-15T00:21:16Zlighty labsLighttpd - Feature #737: php fcgi does not restart if lighttpd restartshttps://redmine.lighttpd.net/issues/737?journal_id=16882006-08-15T00:21:16ZAnonymous
<ul></ul><p>I think this is an issue with php-cgi spawn from lighttpd. When lighttpd restarts, the old lighttpd shuts down the port it listens to so the new process can bind to it. However the old php-cgi parent still binds to the same port (1026 for example), which the new php-cgi cannot bind, that leads to failure to start.</p>
<p>My solution is to use spawn-fcgi even in localhost so you can manage your PHP FastCGI and lighttpd processes independently.</p>
<p>See <a class="external" href="http://hostingfu.com/article/use-spawn-fcgi-for-lighttpd-php-fastcgi">http://hostingfu.com/article/use-spawn-fcgi-for-lighttpd-php-fastcgi</a></p>
<p>-- Scott</p> Lighttpd - Feature #737: php fcgi does not restart if lighttpd restartshttps://redmine.lighttpd.net/issues/737?journal_id=16892007-07-29T14:30:48Zadmin
<ul></ul><p>If you killed all PHP procecsses, the PHP port should be free.</p> Lighttpd - Feature #737: php fcgi does not restart if lighttpd restartshttps://redmine.lighttpd.net/issues/737?journal_id=16902007-12-13T13:20:27ZAnonymous
<ul></ul><p>Same problem here for 1.4.16 (Debian backport). From time to time, php-cgi processes are not linked to lighttpd, so when a restart is initiated, php doesn't suppress its children, and no php process is created again.<br />I must point out the fact that when running php from within a php script (using system('php-cgi ...') or system('/a/php/file/with/good/headers.php')) the process goes directly to a zombie one and stop working at all. I couldn't manage to make it work correctly so far...</p>
<p>-- Yvan</p> Lighttpd - Feature #737: php fcgi does not restart if lighttpd restartshttps://redmine.lighttpd.net/issues/737?journal_id=16912007-12-13T13:23:14Zadmin
<ul></ul><blockquote>
<p>Same problem here for 1.4.16 (Debian backport).</p>
</blockquote>
<p>Can you try 1.4.18?</p>
<blockquote>
<p>I must point out the fact that when running php from within a php script (using system('php-cgi ...') or system('/a/php/file/with/good/headers.php'))</p>
</blockquote>
<p>Shouldn't you use php-cli? Running it that way is not CGI.</p> Lighttpd - Feature #737: php fcgi does not restart if lighttpd restartshttps://redmine.lighttpd.net/issues/737?journal_id=16922008-02-28T07:36:19ZAnonymous
<ul></ul><p>Same here<br />lighttpd-1.4.18<br />CentOS 5.1<br />PHP 5.2.5<br />even killall php-cgi does nothing and it keeps holding memory, only restarting the server would solve the problem.</p>
<p>-- masryalex</p> Lighttpd - Feature #737: php fcgi does not restart if lighttpd restartshttps://redmine.lighttpd.net/issues/737?journal_id=16932008-06-25T14:48:19ZAnonymous
<ul></ul><p>Replying to <a class="wiki-page new" href="https://redmine.lighttpd.net/projects/lighttpd/wiki/Comment5"><a class="email" href="mailto:masryalex@gmail.com">masryalex@gmail.com</a></a>:</p>
<blockquote>
<p>Same here<br />lighttpd-1.4.18<br />CentOS 5.1<br />PHP 5.2.5<br />even killall php-cgi does nothing and it keeps holding memory, only restarting the server would solve the problem.</p>
</blockquote>
<p>try killall -HUP php-cgi</p> Lighttpd - Feature #737: php fcgi does not restart if lighttpd restartshttps://redmine.lighttpd.net/issues/737?journal_id=16942008-09-02T14:02:43Zstbuehler
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Fixed</i></li><li><strong>Resolution</strong> set to <i>invalid</i></li></ul><p>iirc php needs different signals in different versions to terminate... but we already knew that php sucks. There is a kill-signal option for this.</p>
<p>Anyway i recommend to spawn php external.</p> Lighttpd - Feature #737: php fcgi does not restart if lighttpd restartshttps://redmine.lighttpd.net/issues/737?journal_id=45412008-10-10T18:53:28Zstbuehler
<ul><li><strong>Status</strong> changed from <i>Fixed</i> to <i>Invalid</i></li></ul>