I want to restart my TOR service with a PHP script in order to receive a new IP address. The reason why I plan to do that is because Google and some other sites start blocking me sometimes.
I tried Scripts such as
shell_exec ("sudo service tor restart")
exec ("sudo service tor restart")
and system ("sudo service tor restart")
... but none of these are working.
Can someone give me a hint on what to do?