thank you Falko
I need to test the script first, is there a way to execute the PHP script from http with root privileges?
would something like that work if I add it to /etc/sudoers
Code:
web1 ALL=(ALL) NOPASSWD: /usr/bin/php -f /var/www/clients/client1/web/myscript.php
?