[php-maint] Bug#426765: PHP cannot be restarted in external FASTCGI Server mode

Kurt Zankl kz at xon.uni.cc
Wed May 30 19:27:22 UTC 2007


Package: php5-cgi
Version: 5.2.0-8+etch1
Severity: important
Tags: patch

PHP-CGI cannot be restarted in external FASTCGI Server mode (Option 
"-b"), because of a PHP-Bug. You have to wait some seconds and then a 
restart with the same TCP-port is possible, which is not suitable in a 
production environment. This was already fixed in the CVS-Version of PHP 
(see also: http://bugs.php.net/bug.php?id=41291) and should be 
incorporated in the Debian-Version.

Example:

$ /usr/bin/php5-cgi -b localhost:9000 &
$ killall php5-cgi
$ /usr/bin/php5-cgi -b localhost:9000
Cannot bind/listen socket - [98] Address already in use.
Couldn't create FastCGI listen socket on port localhost:9000

PS: This occurs only, when the restart is done after a connection to the 
FASTCGI-Interface was established!




More information about the pkg-php-maint mailing list