Disable big log PHP_ACCESS_LOG #383
-
|
Hello, the log file php-fpm.log is growing up, because it's contains every petition. /usr/local/etc/php-fpm.d/zz-generated-settings.conf
By default is loacated:
I can change the path, but can I disable? For example no access.log
Or this will work? PHP_ACCESS_LOG sent to proc (like apache logs) Tried this config but it's not working: /usr/local/etc/php-fpm.d/docker.conf Thanks in advance. Related: For example: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
|
I think you may set its value to |
Beta Was this translation helpful? Give feedback.
-
|
Thank you, I will try. There's any way to do it without recreating the container? Like php-envvars or restart the php-fpm service? Thanks |
Beta Was this translation helpful? Give feedback.
-
|
@ehnwebmaster You can run the following command to set the environment variable on the running container before restarting it: env-default PHP_ACCESS_LOG /dev/null |
Beta Was this translation helpful? Give feedback.
-
|
Thank you so much It works well. /etc/.docker-env
|
Beta Was this translation helpful? Give feedback.
-
|
Perfect! |
Beta Was this translation helpful? Give feedback.
@ehnwebmaster
Yes, even if you're not creating a new container, you'll need to restart the container so services like PHP-FPM and Nginx can reload the environment variables.
You can run the following command to set the environment variable on the running container before restarting it: