PHP process ID in the server log

#1
The default server doesn't contain process ID. Then I modified the log format, adding %P (following this and this) to get process ID.

On this server, I have CloudLinux. So, it has snapshot whenever an account is using over limitations. In lve-read-snapshot, there are PID, time when it's happening. However, those PIDs are not in OLS log, even after I changed the format. The CloudLinux tech then explained:
  • The PIDs you see in LVE snapshots are for lsphp processes, which handle PHP execution. These PIDs might not directly correlate with the Apache process PIDs because of how PHP is executed (especially when using PHP-FPM or similar handlers). The %P directive in Apache’s log format records the PID of the Apache child serving the request, not necessarily the PID of PHP processes (like lsphp) spawned by Apache.
Is there any configuration in OLS which allows me to record the PIDs like in the explanation from the CL tech?
Thanks.
 
Top