I am running virtualmin on ubuntu 16.04 with Wordpress website.
Most of the time I get 10-20 PIDs of php-cgi. I want to know which php script is currently running or executed php scripts log.
As I recently bought VPS so I am new to server management. So, I am unaware of commands that can do that. However, I did tried some of them by searching my question but none of them resulted in running script.

Server:Apache
PHP: PHP 7 CGI
RAM: 12 GB
CPU: Intel E5