I have configured httpd (apache2.4.6) cgi to run /bin/bash scripts. I would like to trace httpd calls of /bin/bash and see the actual command that is run. So far I have tried to use strace -p but for some reason, I only see: wait4(-1, 0x7ffeef137dfc, WNOHANG|WSTOPPED, NULL) = 0 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
And no specific output when loading an URI that provides a cgi output. Do you have any recommendations how to trace this actions of httpd?