Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.