rryqszq4 / ngx-php

ngx-php - Embedded php7 or php8 scripting language for nginx module. Mainline development version of the ngx-php.
BSD 2-Clause "Simplified" License
646 stars 55 forks source link

ngx-php dockerfile need upgrade #143

Open soulteary opened 2 years ago

soulteary commented 2 years ago

current issues:

nginx version in nginx:stable-alpine is nginx version: nginx/1.20.2, maybe we should provide an updated version to verify that the program builds and works correctly.

maybe the project maintainer can provide an official image, which can lower the threshold for users to use :D

soulteary commented 2 years ago

I've created pr https://github.com/rryqszq4/ngx-php/pull/144

If authorized maintainers can submit a container image, it will be easier for users to use ngx-php in the future.

In the PR, I upgraded the Nginx version, as well as the PHP version

prebuilt for test: https://github.com/nginx-with-docker/ngx_http_php_module demo: https://github.com/rryqszq4/ngx-php/issues/142

joanhey commented 2 years ago

Ngx-php works perfectly with latest versions of PHP and nginx.

Nginx: 1.23.1 and PHP 8.1

soulteary commented 2 years ago

tips, in the alpine stable repository, without manual compilation, we will get the 8.0 version of PHP @joanhey

joanhey commented 2 years ago

I do it with debian. https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/PHP/php-ngx/php-ngx-pgsql.dockerfile