I want a PHP script to cause a shell script to execute on a remote server as root. The script needs to execute sudo commands itself so it needs to be executed as root.
Any Ideas?
I tried having PHP ssh login and execute with sudo but it was too slow.
(I have Ubuntu 10.04 & PHP5 on both servers)