hello - i am trying to run the following csf command from inside a php script:
$ipNbr = 199.231.184.25 ; // for example
$csfCommand = 'sudo /usr/sbin/csf --tempdeny ' . $ipNbr . ' 3600;' ;
$csfResult = shell_exec($csfCommand) ;
$csfResult = exec($csfCommand) ; // i also tried this
so far it does not do anything at all, include return any sort of error message.
i put the following line inside of visudo:
visudo ;
marksdomain.com ALL=(ALL) NOPASSWD: /usr/sbin/csf
any ideas how i can fire off the csf command from inside the php script ??
thank you all very much.