Bug #74166 [Ver->Csd]: IPv6 forced to be enabled
| From: | pollita@php.net | Date: | Wed, 08 Mar 2017 19:05:48 +0000 |
| Subject: | Bug #74166 [Ver->Csd]: IPv6 forced to be enabled | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-207750@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74166&edit=1
ID: 74166
Updated by: pollita@php.net
Reported by: thflori at gmail dot com
Summary: IPv6 forced to be enabled
-Status: Verified
+Status: Closed
Type: Bug
Package: FPM related
Operating System: Alpine Linux 3.5
PHP Version: 7.1.2
Assigned To: pollita
Block user comment: N
Private report: N
New Comment:
After some consideration of the impact of the fix and the ease with which it can be worked around
via configuration, I've decided to only apply the fix to 7.2
https://github.com/php/php-src/commit/b63c45c69e3a97b05314c6f3328a0ff695e28d36
Using listen=0.0.0.0:9000 in your config should work just fine, however.
Previous Comments:
------------------------------------------------------------------------
[2017-03-08 07:01:58] pollita@php.net
Confirmed. FPM assumes a bind address of "::" which normally includes both IPv6 ANYADDR
and IPV4 mapped ANYADDR, but if your system doesn't have IPV6, then it'll fail as
you're experiencing.
In the short term, you can specify a "port" of "0.0.0.0:9000" and it should work
fine on your system.
Longer term I'll put together a fix and get this onto 7.0+
------------------------------------------------------------------------
[2017-02-25 12:39:51] thflori at gmail dot com
Description:
------------
The listen directive in fpm pool configuration is described that 9000 should listen on all
interfaces and addresses on port 9000. It is not described that you have to have IPv6 address
family. But currently fpm stops with this error message when IPv6 is not available:
ERROR: failed to create new listening socket: socket(): Address family not supported by protocol
(97)
Expected result:
----------------
I expect that it listens on 0.0.0.0:9000 when only IPv4 is available.
Actual result:
--------------
The fpm process stops and does not listen on any interface / ip address.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74166&edit=1