Bug 190190

Summary: [PATCH] lang/php5: IPv6 support for FPM sapi
Product: Ports & Packages Reporter: Melvyn Sopacua <m.r.sopacua>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me CC: ale
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
php5-fpm-ipv6.patch none

Description Melvyn Sopacua 2014-05-25 00:30:00 UTC
Php-fpm cannot listen on IPv6 sockets, making it impossible to run in IPv6 only
jails. See also: https://bugs.php.net/bug.php?id=55508

Fix: Patch obtained from github and reworked a bit for conflicts in php-fpm.conf.in
will add support IPv6.
Port provides it through non-default option FPM_IPV6.

Buildarchive: <https://redports.org/buildarchive/20140524225300-60945/>
    (forced FPM_IPV6 build)

Result:
% sockstat -6l | head -2
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS      
www      php-fpm    69257 0  tcp6   2a01:7c8:aaae:25e::10:9000 *:*
How-To-Repeat: 
Add [::1]:9000 as listen directive in php-fpm.conf
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-25 00:30:05 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Melvyn Sopacua 2014-06-15 12:51:31 UTC
Any objections, Alex?