what "php" is running on my server?
Moderator: General Moderators
what "php" is running on my server?
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?
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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.