We recently installed PHP as a dso module for Apache and have been running it for a few weeks now. One of my colleagues has also been testing using PHP from the command line as well.
Basically, there are two processes named PHP in top that have been there for nearly 2 days now and are consuming about 30% of our server's CPU each. We're not using PHP anywhere it can be accessed from the outside world so this must be a result of our development. Here are a few possible culprits of why these processes might be running - maybe someone can tell me if they think they might be the cause and how to fix the problem? I can't kill the processes even as root.
(1) I've been experimenting with writing a web-based FTP client but I've never closed any of the FTP connections - how should I go about doing this or is it even necessary?
(2) My colleague has been calling PHP from the command line (actually, via the command line using ColdFusion, our primary scripting environment) to do some things with the exif library.
(3) My colleague has been using the PEAR DB library to talk to MySQL; it doesn't appear there are any active connections to MySQL, but is there a class method he should be using to close the DB connection or does PEAR use mysql_pconnect so we don't have to worry about it?
Thanks for your help!
-Cliff