Bug #77501 [NEW]: listen = 9000 only listens on one interface
From: laszlo at karolyi dot hu
Operating system: FreeBSD
PHP version: 7.3.1
Package: FPM related
Bug Type: Bug
Bug description:listen = 9000 only listens on one interface
Description:
------------
Hey,
I have a FreeBSD box, wanting to jail php-fpm into a jail which has a
loopback interface (lo0) with a 127.0.0.x IP, and a bridge0 interface
with an actual IPv6 address.
I can't get php to listen on both IPs and interfaces with just
specifying listen = 9000
listen = :::9000 will only listen to the IPv6 interface (normal),
listen = 9000 will only bind to the IPV6 interface (NOT normal)
listen = 0.0.0.0:9000 will only listen on lo0, as expected.
There's no middle way. I tried to specify two listen lines in the same
section, to no avail.
Please fix this. The only way to get PHP to listen on both interfaces is
to define two of the same php-fpm configurations, with the only
difference being the listen directive.
Expected result:
----------------
listen = 9000 should bind to ALL interfaces, regardless of what type of
IP stack they have.
Actual result:
--------------
defined above.
--
Edit bug report at https://bugs.php.net/bug.php?id=77501&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77501&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77501&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77501&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77501&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77501&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77501&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77501&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77501&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77501&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77501&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77501&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77501&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77501&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77501&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77501&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77501&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77501&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77501&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77501&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77501&r=mysqlcfg
Thread (3 messages)
- laszlo at karolyi dot hu