Nothing is written in php5-fpm.log

Posted by jaypabs on Server Fault See other posts from Server Fault or by jaypabs
Published on 2014-08-24T05:00:04Z Indexed on 2014/08/24 10:22 UTC
Read the original article Hit count: 236

Filed under:
|
|
|

I have two servers which is Ubuntu 12.04 and Ubuntu 14.04. When I use Ubuntu 14.04 in my new server and enabled the php-fpm log file found under /etc/php5/fpm/php-fpm.conf that reads as follows:

error_log = /var/log/php5-fpm.log

I noticed that most of the log that I found in Ubuntu 12.04 is not written in 14.04. For example, if I restart php5-fpm in my Ubuntu 12.04, a restart log is being written, however, this does not happen in 14.04. Another log which I missed in 14.04 are the following:

[23-Aug-2014 16:23:03] NOTICE: [pool web42] child 118098 exited with code 0 after 12983.480191 seconds from start
[23-Aug-2014 16:23:03] NOTICE: [pool web42] child 147653 started
[23-Aug-2014 17:27:31] WARNING: [pool web8] child 76743, script '/var/www/mysite.com/web/wp-comments-post.php' (request: "POST /wp-comments-post.php") executing too slow (12.923022 sec), logging

I really wanted to have this kind of log so I will know the length of time a slow script has executed.

Does anyone know if there are other settings in Ubuntu 14.04 that I need to change in addition to /etc/php5/fpm/php-fpm.conf?

© Server Fault or respective owner

Related posts about linux

Related posts about logging