Apache+PHP problem: Cannot list processes other than apache's
- by Satanowski
I have a quite fresh install of the Apache (2.2.3/Centos) + PHP(5.1.6) and following problem:
I need to monitor life of one process and in order to do that I run:
$last_line = exec('ps -C snmpd');
and check its output.
Unfortunately I always get nothing. I've checked it with other process names and it seems it can 'see' only Apache's processes.
Any idea how to work this out?