tiredofit / docker-nginx-php-fpm

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

setting environment variable PHP_LOG_LEVEL=info causes PHP-FPM to be stated over and over #24

Closed pulketo closed 2 years ago

pulketo commented 2 years ago

Summary

Setting environment variable PHP_LOG_LEVEL=info causes PHP-FPM to be started over and over

Steps to reproduce

  1. docker run -e PHP_LOG_LEVEL=info -p 20001:80 -v $HOME/apache1:/www tiredofit/nginx-php-fpm:latest ... [services.d] starting services [services.d] done. 2021-12-06-16:03:15 [STARTING] [nginx] [1] Starting nginx 1.21.4 2021-12-06-16:03:15 [STARTING] [monitoring] [1] Starting Zabbix Agent (modern) 5.4.8 2021-12-06-16:03:15 [STARTING] [php-fpm] [1] Starting php-fpm 8.0.13 2021-12-06-16:03:15 [STARTING] [scheduling] [1] Starting cron 2021-12-06-16:03:16 [STARTING] [php-fpm] [2] Starting php-fpm 8.0.13 2021-12-06-16:03:17 [STARTING] [php-fpm] [3] Starting php-fpm 8.0.13 2021-12-06-16:03:18 [STARTING] [php-fpm] [4] Starting php-fpm 8.0.13 2021-12-06-16:03:19 [STARTING] [php-fpm] [5] Starting php-fpm 8.0.13 2021-12-06-16:03:20 [STARTING] [php-fpm] [6] Starting php-fpm 8.0.13 2021-12-06-16:03:21 [STARTING] [php-fpm] [7] Starting php-fpm 8.0.13 2021-12-06-16:03:22 [STARTING] [php-fpm] [8] Starting php-fpm 8.0.13 2021-12-06-16:03:23 [STARTING] [php-fpm] [9] Starting php-fpm 8.0.13 ...

    What is the expected correct behavior?

    Service started and listening on specified exposed port ... [services.d] done. 2021-12-06-10:06:25 [STARTING] [nginx] [1] Starting nginx 1.21.4 2021-12-06-10:06:25 [STARTING] [monitoring] [1] Starting Zabbix Agent (modern) 5.4.8 2021-12-06-10:06:25 [STARTING] [scheduling] [1] Starting cron 2021-12-06-10:06:25 [STARTING] [php-fpm] [1] Starting php-fpm 8.0.13

Relevant logs and/or screenshots

Environment

tiredofit/nginx-php-fpm:latest sha256:ff8944c683c8ab169afe00de6f6e6d4942702e8c5e1df13a7b704d19b43678d2 OS: CentOS Linux release 8.4.2105

Possible fixes

not using that variable, allows image to be working OK

tiredofit commented 2 years ago

Hi there - Have a peek here for the valid options: https://www.php.net/manual/en/install.fpm.configuration.php

Error log level. Possible values: alert, error, warning, notice, debug.

I will update README accordingly however.