I can't execute pf commands
| From: | Bulent Malik | Date: | Thu, 28 Jul 2011 16:09:01 +0000 |
| Subject: | I can't execute pf commands | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-314234@lists.php.net to get a copy of this message | ||
Hi
I use php5.3 on freebsd
I also use pf ( packet filter) on it.
I need to execute pfctl in php script. But I couldn't execute . I don't get
any errors about that.
Shell commands is allowed in php.ini My
My script is below,
shell_exec('pfctl -s nat');
exec('pfctl -s nat');
If I execute another command like this ; it works
shell_exec('ls -l /var/tmp') ;
What can the problem be ?