I've tried to modify the ipfw rules in php-cli in command line, since I am root, it's ok.
But when I modify the rule via a web page (backend is php-fpm), I got the following error message.
It's there any way to allow php-fpm to modify the ipfw rules?
I am considering to use sudo to authorize php-default account to have the right to modify ipfw, is it a good idea? Appreciated if there's any good suggestion.
But when I modify the rule via a web page (backend is php-fpm), I got the following error message.
Code:
[04-Jul-2011 03:13:51] WARNING: [pool php-default] child 47441 said into stderr: "ipfw: socket: "
[04-Jul-2011 03:13:51] WARNING: [pool php-default] child 47441 said into stderr: "Operation not permitted"
It's there any way to allow php-fpm to modify the ipfw rules?
I am considering to use sudo to authorize php-default account to have the right to modify ipfw, is it a good idea? Appreciated if there's any good suggestion.