View Single Post
Old 3rd December 2012, 11:10
manarak manarak is offline
Senior Member
Join Date: Apr 2009
Posts: 263
Thanks: 32
Thanked 6 Times in 5 Posts

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
web1 ALL=(ALL) NOPASSWD: /usr/bin/php -f /var/www/clients/client1/web/myscript.php
Reply With Quote