Jump to content

MartinW12

New Members
  • Posts

    1
  • Joined

  • Last visited

MartinW12's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have a very simple docker installation consisting of NGINX and PHP via FastCGI on port 9000. I have configured my Dockerfile so that the PHP container copies “php.ini-production” to “php.ini” and then I copy in my own “php_settings.ini” into “conf.d”. Currently the only settings I have in “php_settings.ini” are “fastcgi.logging = 0” and “display_errors = on” (this last one is just to confirm the file is being loaded). Now, if my script has an error then the error is displayed as expected because “display_errors = on”. However I am finding that “fastcgi.logging = 0” is not stopping PHP from logging all requests that are made, which is completely useless and unwanted and just clogs up the docker logs. Note that if the PHP script runs phpinfo() it does show that “fastcgi.logging = 0” has been set. But it does not appear to turn off SAPI logging which is what I want. Certainly, the docker logs contains one line for each request looking something like: Does anyone have any suggestion as to how this SAPI logging can be turned off? Thanks … For completeness, here is my Dockerfile for PHP: FROM php:7.4-fpm RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" COPY application/php.ini "$PHP_INI_DIR/conf.d/php_settings.ini" COPY src /var/www/html EXPOSE 9000 CMD ["php-fpm"]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.