I am looking at an nginx server with php-fpm. I see the access.log directive inside the pool configuration /etc/php5/fpm/pool.d/www.conf
; The access log file
; Default: not set
access.log = /var/log/$pool.php.access.log
However the access log file /var/log/www.php.access.log was not created. I created this file manually but still it was not being populated.
The PHP manual does not list an access.log configuration
http://php.net/manual/en/install.fpm.configuration.php
This post says that there is no access log for fastcgit
Is there an access log for fastcgi?
So not sure whether the access.log configuration is even valid. What I would like to see is logging of all requests that pass through from nginx to the php application.
Thanks for your help in advance.
[global] pid = /var/run/php5-fpm.pid error_log = /var/log/php5-fpm.log include=/etc/php5/fpm/pool.d/*.conf
Here is the www.conf inside pool.d[www] user = www-data group = www-data listen = /var/run/php5-fpm.sock listen.owner = www-data listen.group = www-data pm = dynamic pm.max_children = 500 pm.start_servers = 25 pm.min_spare_servers = 25 pm.max_spare_servers = 50 chdir = /