I found the reason of this issue : SELinux
by defaut, SELinux is enabled on CentOS5.5 => httpd runs with
"restricted rights"
If I temporary disabled SELinux + restart httpd => "ps -A" from my
script runs as expected
$ setenforce 0
$ /etc/init.d/httpd restart
Le 30/01/2013 19:14,
On 01/30/2013 10:14 AM, patrick ficheux wrote:
Hi,
I want to get the list of running processes. also, I call exec() with
"ps -A"
What user is your httpd process running as?
run this from your cli:
ps aux | grep httpd
and show us the output
--
Jim Lucas
http://www.cmsws.com/
http://www.cm
Hi,
I want to get the list of running processes. also, I call exec() with
"ps -A"
(ps -A displays almost all processes of all users)
Unfortunatly, the output of "ps -A" seems incomplete
the test file test.php:
");
}
?>
If I run the test.php under the context of httpd (from
http:///test.php),
3 matches
Mail list logo