tiredofit / docker-nginx-php-fpm

Dockerized web server and interpreter image with many customizable options
MIT License
138 stars 34 forks source link

5.6:alpine has issues with new nginx version (`events` directive missing) and php-fpm not starting properly #73

Closed WRinnovation closed 8 months ago

WRinnovation commented 8 months ago

Summary

Hi, I have two issues with 5.6:alpine:

  1. nginx: [emerg] no "events" section in configuration
  2. php-fpm always restarting (unidentified issue)

Steps to reproduce

Tested with this docker-compose.yml

version: '3'

services:
  wp:
    container_name: test-image
    platform: linux/x86_64
    image: tiredofit/nginx-php-fpm:5.6-alpine
    ports:
      - '80'
    restart: always
    environment:
      USER_nginx: '1000' # = ubuntu uid on the host
      GROUP_www-data: '1001' # = www gid on the host

I'm testing this on a M1 Mac, so i need to emulate the platform (see the line in the compose). However, I've tested this also on an ubuntu 22 server and it has the same behaviour.

What is the expected correct behavior?

Nginx and php-fpm up and running.

Relevant logs and/or screenshots

Attaching to test-image
test-image  | /package/admin/s6-overlay/libexec/preinit: notice: /var/run is not a symlink to /run, fixing it
test-image  | s6-linux-init: warning: parent wrote to fd 3!
test-image  |                                                                        ,---.
test-image  | ,--------.,--.                 ,--.            ,---.    ,--. ,--------.|   |
test-image  | '--.  .--'`--',--.--. ,---.  ,-|  |     ,---. /  .-'    |  | '--.  .--'|  .'
test-image  |    |  |   ,--.|  .--'| .-. :' .-. |    | .-. ||  `-,    |  |    |  |   |  |
test-image  |    |  |   |  ||  |   \   --.\ `-' |    ' '-' '|  .-'    |  |.--.|  |   `--'
test-image  |    `--'   `--'`--'    `----' `---'      `---' `--'      `--''--'`--'   .--.
test-image  |                                                                        '--'
test-image  | Image:  tiredofit/nginx-php-fpm | Version  7.7.5 Type 'image_changelog' for details
test-image  | Repository/Documentation: https://github.com/tiredofit/docker-nginx-php-fpm/
test-image  | 
test-image  | If this image provides you value  - Consider sponsoring my work for continued 
test-image  | development, timely updates, and feature requests. Commercial support available.
test-image  | 
test-image  |                     More Info:  https://www.tiredofit.ca
test-image  | 
test-image  | 2024-02-16.09:51:14 [NOTICE] ** [monitoring] Container configured for monitoring with 'zabbix classic'
test-image  | 2024-02-16.09:51:15 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
test-image  | 2024-02-16.09:51:16 [NOTICE] ** [messaging] Container configured to route mail via SMTP to 'postfix-relay'
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | /assets/functions/20-php-fpm: line 109: /etc/php//conf.d/99-smtp.ini: No such file or directory
test-image  | /assets/functions/20-php-fpm: line 111: /etc/php//conf.d/99-timezone.ini: No such file or directory
test-image  | 2024-02-16.09:51:23 [NOTICE] ** [php-fpm] Creating sample index.php
test-image  | Error loading shared library libintl.so.8: No such file or directory (needed by /usr/local/bin/envsubst)
test-image  | Error relocating /usr/local/bin/envsubst: libintl_bindtextdomain: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_gettext: symbol not found
test-image  | Error relocating /usr/local/bin/envsubst: libintl_textdomain: symbol not found
test-image  | cp: can't create '/etc/php//': Is a directory
test-image  | cp: can't create '/etc/php//mods-available/apcu.ini': No such file or directory
test-image  | cp: can't create '/etc/php//mods-available/opcache.ini': No such file or directory
test-image  | cp: can't create '/etc/php//': Is a directory
test-image  | 2024-02-16.09:51:23 [ERROR] ** [php-fpm] Requested enabling apcu however it doesn't exist!
test-image  | 2024-02-16.09:51:23 [ERROR] ** [php-fpm] Requested enabling bcmath however it doesn't exist!
test-image  | 2024-02-16.09:51:23 [ERROR] ** [php-fpm] Requested enabling bz2 however it doesn't exist!
test-image  | 2024-02-16.09:51:23 [ERROR] ** [php-fpm] Requested enabling ctype however it doesn't exist!
test-image  | 2024-02-16.09:51:23 [ERROR] ** [php-fpm] Requested enabling curl however it doesn't exist!
test-image  | 2024-02-16.09:51:23 [ERROR] ** [php-fpm] Requested enabling dom however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling exif however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling fileinfo however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling gd however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling iconv however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling imap however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling intl however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling json however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling mbstring however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling mysqli however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling mysqlnd however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling opcache however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling openssl however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling pdo however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling pdo_mysql however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling pgsql however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling phar however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling session however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling simplexml however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling tokenizer however it doesn't exist!
test-image  | 2024-02-16.09:51:24 [ERROR] ** [php-fpm] Requested enabling xml however it doesn't exist!
test-image  | 2024-02-16.09:51:25 [ERROR] ** [php-fpm] Requested enabling xmlreader however it doesn't exist!
test-image  | 2024-02-16.09:51:25 [ERROR] ** [php-fpm] Requested enabling xmlwriter however it doesn't exist!
test-image  | chmod: /etc/php/: No such file or directory
test-image  | chown: /etc/php/: No such file or directory
test-image  | 2024-02-16.09:51:26 [STARTING] ** [nginx] [1] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:26 [STARTING] ** [php-fpm] [1] Starting php-fpm 
test-image  | 2024-02-16.09:51:27 [STARTING] ** [monitoring] [1] Starting Zabbix Agent (classic) 6.4.11
test-image  | 2024-02-16.09:51:27 [STARTING] ** [scheduling] [1] Starting cron
test-image  | 2024-02-16.09:51:27 [STARTING] ** [nginx] [2] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:28 [STARTING] ** [php-fpm] [2] Starting php-fpm 
test-image  | 2024-02-16.09:51:29 [STARTING] ** [nginx] [3] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:29 [STARTING] ** [php-fpm] [3] Starting php-fpm 
test-image  | 2024-02-16.09:51:30 [STARTING] ** [nginx] [4] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:30 [STARTING] ** [php-fpm] [4] Starting php-fpm 
test-image  | 2024-02-16.09:51:31 [STARTING] ** [nginx] [5] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:32 [STARTING] ** [php-fpm] [5] Starting php-fpm 
test-image  | 2024-02-16.09:51:33 [STARTING] ** [nginx] [6] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:33 [STARTING] ** [php-fpm] [6] Starting php-fpm 
test-image  | 2024-02-16.09:51:34 [STARTING] ** [nginx] [7] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:35 [STARTING] ** [php-fpm] [7] Starting php-fpm 
test-image  | 2024-02-16.09:51:35 [STARTING] ** [nginx] [8] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:36 [STARTING] ** [php-fpm] [8] Starting php-fpm 
test-image  | 2024-02-16.09:51:37 [STARTING] ** [nginx] [9] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:37 [STARTING] ** [php-fpm] [9] Starting php-fpm 
test-image  | 2024-02-16.09:51:38 [STARTING] ** [nginx] [10] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:39 [STARTING] ** [php-fpm] [10] Starting php-fpm 
test-image  | 2024-02-16.09:51:39 [STARTING] ** [nginx] [11] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:40 [STARTING] ** [php-fpm] [11] Starting php-fpm 
test-image  | 2024-02-16.09:51:41 [STARTING] ** [nginx] [12] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:42 [STARTING] ** [php-fpm] [12] Starting php-fpm 
test-image  | 2024-02-16.09:51:42 [STARTING] ** [nginx] [13] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:43 [STARTING] ** [php-fpm] [13] Starting php-fpm 
test-image  | 2024-02-16.09:51:43 [STARTING] ** [nginx] [14] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:45 [STARTING] ** [php-fpm] [14] Starting php-fpm 
test-image  | 2024-02-16.09:51:45 [STARTING] ** [nginx] [15] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:46 [STARTING] ** [php-fpm] [15] Starting php-fpm 
test-image  | 2024-02-16.09:51:46 [STARTING] ** [nginx] [16] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:48 [STARTING] ** [nginx] [17] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:48 [STARTING] ** [php-fpm] [16] Starting php-fpm 
test-image  | 2024-02-16.09:51:49 [STARTING] ** [nginx] [18] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:49 [STARTING] ** [php-fpm] [17] Starting php-fpm 
test-image  | 2024-02-16.09:51:50 [STARTING] ** [nginx] [19] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:51 [STARTING] ** [php-fpm] [18] Starting php-fpm 
test-image  | 2024-02-16.09:51:52 [STARTING] ** [nginx] [20] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:52 [STARTING] ** [php-fpm] [19] Starting php-fpm 
test-image  | 2024-02-16.09:51:53 [STARTING] ** [nginx] [21] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:53 [STARTING] ** [php-fpm] [20] Starting php-fpm 
test-image  | 2024-02-16.09:51:54 [STARTING] ** [nginx] [22] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:55 [STARTING] ** [php-fpm] [21] Starting php-fpm 
test-image  | 2024-02-16.09:51:56 [STARTING] ** [nginx] [23] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:56 [STARTING] ** [php-fpm] [22] Starting php-fpm 
test-image  | 2024-02-16.09:51:57 [STARTING] ** [nginx] [24] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:58 [STARTING] ** [php-fpm] [23] Starting php-fpm 
test-image  | 2024-02-16.09:51:58 [STARTING] ** [nginx] [25] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:51:59 [STARTING] ** [php-fpm] [24] Starting php-fpm 
test-image  | 2024-02-16.09:51:59 [STARTING] ** [nginx] [26] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:00 [STARTING] ** [php-fpm] [25] Starting php-fpm 
test-image  | 2024-02-16.09:52:01 [STARTING] ** [nginx] [27] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:02 [STARTING] ** [php-fpm] [26] Starting php-fpm 
test-image  | 2024-02-16.09:52:02 [STARTING] ** [nginx] [28] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:03 [STARTING] ** [php-fpm] [27] Starting php-fpm 
test-image  | 2024-02-16.09:52:04 [STARTING] ** [nginx] [29] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:05 [STARTING] ** [php-fpm] [28] Starting php-fpm 
test-image  | 2024-02-16.09:52:05 [STARTING] ** [nginx] [30] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:06 [STARTING] ** [php-fpm] [29] Starting php-fpm 
test-image  | 2024-02-16.09:52:06 [STARTING] ** [nginx] [31] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:08 [STARTING] ** [nginx] [32] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:08 [STARTING] ** [php-fpm] [30] Starting php-fpm 
test-image  | 2024-02-16.09:52:09 [STARTING] ** [nginx] [33] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:10 [STARTING] ** [php-fpm] [31] Starting php-fpm 
test-image  | 2024-02-16.09:52:10 [STARTING] ** [nginx] [34] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:11 [STARTING] ** [php-fpm] [32] Starting php-fpm 
test-image  | 2024-02-16.09:52:12 [STARTING] ** [nginx] [35] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:12 [STARTING] ** [php-fpm] [33] Starting php-fpm 
test-image  | 2024-02-16.09:52:13 [STARTING] ** [nginx] [36] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:14 [STARTING] ** [php-fpm] [34] Starting php-fpm 
test-image  | 2024-02-16.09:52:14 [STARTING] ** [nginx] [37] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:15 [STARTING] ** [php-fpm] [35] Starting php-fpm 
test-image  | 2024-02-16.09:52:16 [STARTING] ** [nginx] [38] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:17 [STARTING] ** [php-fpm] [36] Starting php-fpm 
test-image  | 2024-02-16.09:52:17 [STARTING] ** [nginx] [39] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:18 [STARTING] ** [php-fpm] [37] Starting php-fpm 
test-image  | 2024-02-16.09:52:18 [STARTING] ** [nginx] [40] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:20 [STARTING] ** [php-fpm] [38] Starting php-fpm 
test-image  | 2024-02-16.09:52:20 [STARTING] ** [nginx] [41] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:21 [STARTING] ** [nginx] [42] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:21 [STARTING] ** [php-fpm] [39] Starting php-fpm 
test-image  | 2024-02-16.09:52:22 [STARTING] ** [nginx] [43] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:22 [STARTING] ** [php-fpm] [40] Starting php-fpm 
test-image  | 2024-02-16.09:52:24 [STARTING] ** [nginx] [44] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:24 [STARTING] ** [php-fpm] [41] Starting php-fpm 
test-image  | 2024-02-16.09:52:25 [STARTING] ** [nginx] [45] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:25 [STARTING] ** [php-fpm] [42] Starting php-fpm 
test-image  | 2024-02-16.09:52:26 [STARTING] ** [nginx] [46] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:27 [STARTING] ** [php-fpm] [43] Starting php-fpm 
test-image  | 2024-02-16.09:52:28 [STARTING] ** [nginx] [47] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:28 [STARTING] ** [php-fpm] [44] Starting php-fpm 
test-image  | 2024-02-16.09:52:29 [STARTING] ** [nginx] [48] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:30 [STARTING] ** [php-fpm] [45] Starting php-fpm 
test-image  | 2024-02-16.09:52:30 [STARTING] ** [nginx] [49] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:31 [STARTING] ** [php-fpm] [46] Starting php-fpm 
test-image  | 2024-02-16.09:52:32 [STARTING] ** [nginx] [50] Starting nginx 1.25.3
test-image  | nginx: [emerg] no "events" section in configuration
test-image  | 2024-02-16.09:52:33 [STARTING] ** [php-fpm] [47] Starting php-fpm 
test-image  | 2024-02-16.09:52:33 [ERROR] ** [nginx] POTENTIAL RUNWAY DETECTECTED: Disabling 10-nginx service because it has tried restarting '50' times
test-image  | 2024-02-16.09:52:34 [STARTING] ** [php-fpm] [48] Starting php-fpm 
test-image  | 2024-02-16.09:52:35 [STARTING] ** [php-fpm] [49] Starting php-fpm 
test-image  | 2024-02-16.09:52:37 [STARTING] ** [php-fpm] [50] Starting php-fpm 
test-image  | s6-applyuidgid: fatal: unable to exec php-fpm: No such file or directory
test-image  | 2024-02-16.09:52:38 [ERROR] ** [php-fpm] POTENTIAL RUNWAY DETECTECTED: Disabling 20-php-fpm service because it has tried restarting '50' times

Possible fixes

The nginx events error seems an easy fix https://stackoverflow.com/questions/54481423/nginx-startup-prompt-emerg-no-events-section-in-configuration

I don't know how to fix the php-fpm error I get not found, trying to call it inside the container, but I'm not familiar with alpine at all

[tiredofit/nginx-php-fpm:7.7.5 10:50:08 /] $ php-fpm
bash: php-fpm: command not found
[tiredofit/nginx-php-fpm:7.7.5 10:50:10 /] $ php-fpm5
bash: php-fpm5: command not found

Thanks for the commitment! These images are great and reliable.

tiredofit commented 8 months ago

Thanks for the report. 7.7.6 should resolve this. I had to remove php5-suhosin from the available packages for this variant as it no longer exists in the repositories..

Let me know if this gets you back up and running.

WRinnovation commented 8 months ago

Thanks, that was quick!

PS: not really important, but I want to signal also that the docker compose example linked in the homepage is 404 https://github.com/tiredofit/docker-nginx-php-fpm/blob/main/examples/docker-compose.yml

tiredofit commented 8 months ago

Great! https://github.com/tiredofit/docker-nginx-php-fpm/commit/7d2e3b9380c90fd9aa76204d6cec8ddf764e4b79 resolves the broken link in the README