what "php" is running on my server?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
snicciolo
Forum Newbie
Posts: 1
Joined: Tue Apr 24, 2012 8:58 am

what "php" is running on my server?

Post 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?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: what "php" is running on my server?

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply