On 7/28/2011 9:09 AM, Bulent Malik wrote:
> 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,
>
another point: I think you tried it in shell as a root but in browser it
can't execute it as a root again I agree with Shawn it is from permission
try the command that I told you I mean edit the command and then run it in
browser
Bulint clear private data or cookies maybe your browser stores something and
can't act for this clear them and then try and tell us the result
2011/7/28 Bulent Malik
> **
>
>
>
> >> did you try it in shell? or just You tried it in PHP?
>
> Yeah, I tried it on shell and it works on it. Also if
Arthur would you please explain it in more details?
On 07/28/2011 01:22 PM, Arthur Moczulski wrote:
> Answer to your problem is in your pop Apache module configuration. I would
> suggest to look how different your cli php.ini file is in comparison to your
> Apache php module php.ini file
No
> Also I would not follow the suggestion of adding Apache
Answer to your problem is in your pop Apache module configuration. I would
suggest to look how different your cli php.ini file is in comparison to your
Apache php module php.ini file
Also I would not follow the suggestion of adding Apache user to sudoers.
It's quite high risk move in security-wise
Bulent Malik wrote:
>
>
>
>
> >> did you try it in shell? or just You tried it in PHP?
>
>Yeah, I tried it on shell and it works on it. Also if I execute it as
>command line, it works ;
>
>php test.php
>
>But when I try it on www ( internet explorer, firefox, chrome ..) it
>doesn't work.
>
>
>> did you try it in shell? or just You tried it in PHP?
Yeah, I tried it on shell and it works on it. Also if I execute it as
command line, it works ;
php test.php
But when I try it on www ( internet explorer, firefox, chrome ..) it
doesn't work.
did you try it in shell? or just You tried it in PHP?
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 execut
10 matches
Mail list logo