I have bought https://shop.pimoroni.com/products/pan-tilt-hat , it works fine, but I want to control it through a php webserver, but every time I try, it requires sudo but when I use sudo I get an error in /var/log/apache2/error.log
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: no tty present and no askpass program specified
Another question could be: How do I avoid having to use sudo with the pan tilt hat library