Bug #77482 [Com]: Wont bind to IPv4 if IPv6 enabled

From: Date: Tue, 22 Jan 2019 17:27:01 +0000
Subject: Bug #77482 [Com]: Wont bind to IPv4 if IPv6 enabled
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219133@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77482&edit=1 ID: 77482 Comment by: laszlo at karolyi dot hu Reported by: php at darkain dot com Summary: Wont bind to IPv4 if IPv6 enabled Status: Open Type: Bug Package: FPM related Operating System: FreeBSD PHP Version: 7.3.1 Block user comment: N Private report: N New Comment: +1, Same as #77501. Adding the information here that listening on both interfaces is only available with specifying two separate fpm configurations, with the respective listen directives. Previous Comments: ------------------------------------------------------------------------ [2019-01-17 19:44:52] php at darkain dot com Changing listen to "0.0.0.0:9000" will properly listen on IPv4 without IPv6 as expected. Manually specifying an IP address (either v4 or v6) works as expected as well. It is only when specifying port ONLY that it is broken according to the docs. ------------------------------------------------------------------------ [2019-01-17 19:34:39] php at darkain dot com Description: ------------ 1) Create a bare FreeBSD jail 2) Inside of jail, run "pkg install php73" 3) Change /usr/local/etc/php-fpm.d/www.conf to "listen = 9000" 4) Run "service php-fpm onestart" to start the PHP FPM daemon PHP service is now running, but only listening on IPv6:9000, not IPv4:9000. Expected result: ---------------- Listening on both IPv4 and IPv6 Actual result: -------------- root@php-test:~ # sockstat -l USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS www php-fpm 37643 5 tcp6 *:9000 *:* www php-fpm 37642 5 tcp6 *:9000 *:* root php-fpm 37641 7 tcp6 *:9000 *:* (note the pack of tcp4 in PROTO) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77482&edit=1

« previous php.bugs (#219133) next »