I'm currently working on a site that serves as a front end for our deployment automation. This automation is currently done through VBScripting and the use of MSDeploy, or Web Deploy. The site itself is running on a WAMP server, affecting Wrindows/IIS servers with the aforementioned msdeploy.
The issue comes with needing to run the msdeploy command (using shell_exec() thus far) against both our staging and production environment, each on different domains. Perhaps there is a way to run a shell_exec() under different credentials than that which the apache service is running under normally.
The only other option I've come up with is having PHP write a temporary .bat file that contains a runas every time an automation is called. If there is a less kludgy way of going about this I would prefer it.