[PHP Apache Shell], Permission apache kill

1

I need to kill a process with php , but I use exec , system or exec_shell and it is not killing processes, I ran on the net and people are saying that apache is not allowed to execute these types of the commands, the strange thing is that I am logged in as root on the system and still it does not kill .. Can anyone help me?

    
asked by anonymous 18.05.2015 / 16:01

1 answer

0

Following the suggestion of touchmx .

Make sure the www user is in the correct group.

To view groups:

groups

try using:

useradd -G {group-name} username

or in the case:

useradd -G sudo www

Or:

useradd -G root www

For more details see: How to Add User to Root Group on CentOS 5 / CentOS 6

    
28.05.2015 / 17:06