backport support for unix domain sockets
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | apache2 (Ubuntu) |
Undecided
|
Unassigned | ||
| | Trusty |
Undecided
|
Robie Basak | ||
Bug Description
Background: Ceph's RADOS Gateway ("RGW") is a web application that provides an S3- and Swift-compatible interface to Ceph. RGW uses mod_proxy_fcgi in Apache 2.4.
In the Ceph team's testing, the RGW application performs much better when using Unix Domain Sockets with mod_proxy_fcgi. On older versions of Apache that do not support Unix Domain Sockets, RGW must use TCP sockets instead, which do not perform as well.
The upstream Apache project shipped Unix Domain Socket support in version 2.4.9. Since Ubuntu Trusty has Apache 2.4.7, I'd like to request that the Ubuntu Apache maintainers backport Unix Domain Socket support into their 2.4.7 package.
(Here is some background information posted to ceph-devel: http://
The attachment "Red Hat's patch for UDS support in httpd 2.4.6" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]
| tags: | added: patch |
| Robie Basak (racb) wrote : | #3 |
Thank you for taking the time to file this.
Normally this would not be possible as it would be a violation of our stable release update policy (https:/
But in this case this might warrant an exception, which would need approval from our Technical Board. I'm just waiting for a decision from my tech lead on whether we want to drive this.
| Changed in apache2 (Ubuntu): | |
| status: | New → Fix Released |
| Rolf Leggewie (r0lf) wrote : | #4 |
assigning Robie to update the status as the information becomes available (which is the next step for this ticket)
| Changed in apache2 (Ubuntu Trusty): | |
| assignee: | nobody → Robie Basak (racb) |
| Launchpad Janitor (janitor) wrote : | #5 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in apache2 (Ubuntu Trusty): | |
| status: | New → Confirmed |
| Janne Snabb (snabb) wrote : | #6 |
Before applying this patch, please note that it has a regression in ProxyPass connectiontimeout parameter handling, see https:/
| Grant Slater (firefishy) wrote : | #7 |
Resolved link to the UDS patch: https:/
| Guy Baconniere (lordbaco) wrote : | #8 |
https:/
14.04 LTS has Apache 2.4.7 so you cannot use this :
<FilesMatch "\.php$">
# Requires Apache 2.4.9 or later
SetHandler "proxy:
# Requires Apache 2.4.10 and later
SetHandler "proxy:
</FilesMatch>
So with 14.04 LTS you need to
1. Configure each VirtualHost with
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://
2. In PHP5-FPM, use TCP instead of Unix Domain Socket (/etc/php5/
listen = 127.0.0.1:9000
The alternative is to use mod_fastcgi but it's part of multiverse
(disabled by default /etc/apt/
See also
http://
16.04 LTS is out but not all PHP applications are compatible with PHP 7
(like ibm_db2 is not yet ready https:/
We're going to remove support for FCGI in RGW: http://
| Robie Basak (racb) wrote : | #10 |
Thanks. Let's close the bug then, so it's clear that nobody is expecting this to ever happen in Trusty. The bug is valid, so rather than Invalid I'll mark it Won't Fix (as we don't intend to fix it).
This isn't intended to exclude anyone else doing it. If you want to work on this, please raise it in this bug and we can reopen, though it would still be subject to SRU team approval, etc.
| Changed in apache2 (Ubuntu Trusty): | |
| status: | Confirmed → Won't Fix |


Here's the patch that Red Hat ships to provide UDS support for their httpd 2.4.6 package on RHEL 7. (This patch can be found in CentOS' git repository, https:/ /git.centos. org/log/ !rpms!httpd. git/refs! heads!c7 )