I need to restart tor with php (after making changes to torrc periodically), from the command line I'd do
and that works, but from php doing
results in a "Checking if tor configuration is valid ... failed!" error.
Anyone have a solution?
Code:
/etc/init.d/tor restart
Code:
exec('/etc/init.d/tor restart',$output);
Anyone have a solution?