Tuesday, 27 August 2013

Find PHP process that logs to file

Find PHP process that logs to file

I have started a PHP script via browser and due to a loop error the script
continues to be executed even after closing the browser. I am noticing it
since the script is logging error messages to my logfile (path known).
We have a Apache server where many developers work together and the user
is nmdev. So how can I find out what process it the one running and
logging to my logfile?
ps -afe | grep php53 gives me many processes of today like:
nmdev 26518 24151 0 11:51 ? 00:00:00 /opt/xxx/yyy/apache-php5/bin/httpd -k
start

No comments:

Post a Comment