RUN ln -sf /dev/stdout /var/log/fpm-access. I tried to do this in the Dockerfile (which is a idea I copied from the official nginx docker image): # Redirect fpm logs to stdout and stderr so they are forwarded to the docker log collector Procedure Not using PHP-FPM In WHM The error log location can only be set globally using WHM. The exact procedure varies depending on your configuration. We also see that /var/log/ is where php-fpm is going to store its logs. A few things should be immediately obvious: the line pid /run/php/ tells us which file contains the process id of the php-fpm process. The problem is when I try to use the docker log collector - I need php-fpm to log to stdout or stderr so docker can capture them and provide them to the docker logs command. The error log location for PHP can be set both globally on the server and on a per-user basis. Note: the default prefix is /var Default Value: log/php-fpm.log errorlog /var/log/. This works fine - I can get a shell into the container to see the logs. Sed -i '/^ php_admin_flag\/cphp_admin_flag = on' /etc/php5/fpm/pool.d/www.conf Sed -i '/^ php_admin_value\/cphp_admin_value = /var/log/fpm-php.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |