Bug 1172482 - RFE: better PHP-FPM integration
Summary: RFE: better PHP-FPM integration
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lighttpd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-10 07:36 UTC by Remi Collet
Modified: 2016-12-25 03:21 UTC (History)
5 users (show)

Fixed In Version: lighttpd-1.4.43-3.fc25 lighttpd-1.4.43-3.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-25 01:49:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Remi Collet 2014-12-10 07:36:50 UTC
This is mostly a feature tracker.

For now we have httpd and nginx which work out-the-box with php-fpm.

It will be nice to be able to do the same with lighttpd (but I never find a way to drop a configuration file somewhere with fpm configuration).

For http:
- php-fpm requires httpd-filesystem which provides configuration dir and user
- php-fpm provides /etc/httpd/conf.d/php.conf

For nginx:
- php-fpm requires nginx-filesystem ...
- php-fpm provides /etc/nginx/default.d/php.conf

Do you think something similar will be possible for lighttpd ?
If possible, I will be very happy to add this file in php-fpm.

Change planed in F22: switch to UDS (instead of local loopback).

As we don't have any group for all webservers in Fedora (while, p.e. Debian have www-data), we cannot set the perm on the socket using it.

Thanks to https://bugs.php.net/68526 I plan to use posix ACL.
So, for default provided www pool, something like.
   [www]
   listen = /run/php-fpm/www.sock
   listen.acl_users = apache,nginx

So, without change in lighttpd, sysadmin will have to also change this configuration (they already have to change lighttpd configuration).

Comment 1 Christian Stadelmann 2015-03-12 11:49:40 UTC
In https://pyd.io/fedora-lighttpd/ is a detailled howto which makes lighttpd+php-fpm work. Tested it on F21 and it works (mostly).

Comment 2 Glenn S 2016-07-03 02:12:45 UTC
FYI: upcoming release of lighttpd 1.4.40 supports globbing includes, so you'll be able to drop a config file into /etc/lighttpd/conf.d/

Reference: https://redmine.lighttpd.net/issues/1221

Comment 3 Vedran Miletić 2016-10-21 18:41:16 UTC
Fedora now packages 1.4.41, has this improved?

Comment 4 Gwyn Ciesla 2016-12-15 14:21:21 UTC
I'm willing to ship this if someone can provide a desired config file.

Comment 5 Remi Collet 2016-12-15 14:28:46 UTC
@Jon

If we want to follow apache and nginx solution, the only change to apply to lighttp is to create a "filesystem" subpackage for user creation and tree ownership.

The PHP specific configuration will be them provided by php-fpm package (requiring lighttp-filesystem). This seems better as PHP know how is configured FPM and thus how should be configured Lighttp (mostly UDS path).

But indeed, we need someone able to write this configuration file (and I have absolutely no idea how this work).

Comment 6 Gwyn Ciesla 2016-12-15 14:32:33 UTC
Ok, I'll get the -filesystem package out there, then.

Comment 7 Fedora Update System 2016-12-15 15:18:48 UTC
lighttpd-1.4.43-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-3c14c5e289

Comment 8 Fedora Update System 2016-12-15 15:19:06 UTC
lighttpd-1.4.43-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-972f208467

Comment 9 Fedora Update System 2016-12-16 05:31:37 UTC
lighttpd-1.4.43-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-3c14c5e289

Comment 10 Fedora Update System 2016-12-16 05:33:20 UTC
lighttpd-1.4.43-3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-972f208467

Comment 11 Fedora Update System 2016-12-25 01:49:49 UTC
lighttpd-1.4.43-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2016-12-25 03:21:21 UTC
lighttpd-1.4.43-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.