Get Apache process's pid from php
Posted: Thu Nov 27, 2008 9:15 pm
Hello, I have phpmyadmin application where clients can use it to access Mysql. I have Apache2 web server (prefork module) installed on Linux machine. For each HTTP request from the clients, Apache assigns a child process to serve this request. I can see the PID of the processes in server-status file (http://localhost/server-status.html) but I would like to know how can I obtain the Apache process's id of each request as well as the user id (Mysql user) from php. (I mean how to write a php script to log the Mysql user and the PID of each request).
Thank you
Thank you