[PHP Apache Shell], Permissao apache Kill

Asked

Viewed 120 times

1

I need to kill a lawsuit for php, but I use exec, system or exec_shell and it’s not killing the processes, I went online and the guys are saying that apache is not allowed to execute these kinds of commands, the strange thing is that I’m logged as root in the system and still does not kill.. Can someone help me ?

  • You need to add the www user to the super user group. Use the addgroup www sudo command

  • Since I’m in Centos this command doesn’t exist

1 answer

0

Following the suggestion of touchmx.


Check that the www user is in the correct group.

To see the groups:

groups

try to use:

useradd -G {group-name} username

or in the case:

useradd -G sudo www

Or else:

useradd -G root www

For more details see: How to Add User to root Group on Centos 5/Centos 6

Browser other questions tagged

You are not signed in. Login or sign up in order to post.