oerdnj / deb.sury.org

Public bugreports for anything ppa:ondrej/*
813 stars 27 forks source link

[Feature suggestion] PHP language module for Nginx Unit #1302

Open Articus opened 4 years ago

Articus commented 4 years ago

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:

Describe alternatives you've considered

There seems to be only two alternatives:

P. S.

Regardless of the answer great thanks for maintaining the best Debian PHP repo!

Articus commented 3 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).

razvanphp commented 1 day ago

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!

oerdnj commented 1 day ago

It would be nice, but I don’t have capacity to do that and maintain yet another framework.