Open Articus opened 4 years ago
Small update: now there is one more alternative - https://github.com/Articus/unit-php (a bit "hackish" proof-of-concept I made for our project migration to PHP 8.0).
I actually managed to easily compile this for sury php7.4 on bookworm using the instructions here: https://unit.nginx.org/howto/modules/#modules-pkg
This is even easier when done in a temporary docker builder stage.
It would be nice to have those packages to be honest. Thank you for your work!
It would be nice, but I don’t have capacity to do that and maintain yet another framework.
Is your feature request related to a problem? Please describe.
About two years ago Nginx team introduced Nginx Unit - their own application server that can run PHP applications via
libphp-embed
. We use it in production for more than a year now (nearly year and a half) and it seems to be a perfect alternative for PHP-FPM: feature parity for web applications with only one entry script, better performance, more convenient configuration.Nginx Unit has official repository and its installation is pretty straightforward but there is one "catch" -
unit-php
(package for PHP language module) is build for PHP package from official Debian repository. So for example if you want to run Nginx Unit + PHP 7.4 even on Buster, you have to build PHP language module from source :(Describe the solution you'd like
According discussion at Nginx Unit issue tracker the best place for custom package with PHP language module would be the repository that provides custom PHP package. And for example popular PHP package repository for Centos does that.
I know that is a lot to ask for but would you be interested in providing similar packages? My personal "dream come true" variant would be:
php<version>-unit-php
(likephp7.4-unit-php
) containingphp<version>.unit.so
(likephp7.4.unit.so
) for Nginx Unit module folder (/usr/lib/unit/modules
in package from official repo)Describe alternatives you've considered
There seems to be only two alternatives:
unit-php
package with latest minor revision from packages.sury.org/php for PHP version provided by Debian distribution (our current strategy)php.unit.so
(the only fileunit-php
provides) each time PHP package upgrade from packages.sury.org/php is needed (currently experimenting with that because of PHP 7.4 release)P. S.
Regardless of the answer great thanks for maintaining the best Debian PHP repo!