Page 1 of 1
what "php" is running on my server?
Posted: Tue Apr 24, 2012 9:03 am
by snicciolo
I want to see what php code is hogging my server resources, but by a common task manager all I can see is a bunch httpd processes which do not tell me much, I want to know what php code called that new httpd process...how can I "unmask" this httpd processes to see what php code/web page called them?
Re: what "php" is running on my server?
Posted: Tue Apr 24, 2012 11:22 am
by pickle
You can't, because they didn't. The httpd processes are started & managed by the web server. Periodically, when a request comes in for a PHP file, one of those httpd processes will start a php process & run the file. As far as I know, the best you can do is run `top` & see if a php file comes to the top. You could also run ps -aux repeatedly to see if you can catch a PHP file being run. If you can't then I'd suggest PHP isn't really hogging your resources.