kool_samule Posted September 14, 2010 Share Posted September 14, 2010 Hi Chaps, I'm setting up a PHP App on a new SBS2008 Server. My scripts use MKDIR, RENAME, etc, which I believe use the Windows Command Prompt by default to perform these functions. On my existing server, I have added IUSER to the security settings, but I am unable to do this on the new SBS2008 Server. I have read that it is advised against giving such permissions to 'Guests' to the CMD.EXE, so my question is how do I get around this. If PHP uses CMD, but I cannot grant permissions to, what was IUSER, how can PHP perform these actions? Cheers Quote Link to comment https://forums.phpfreaks.com/topic/213392-phpcmd/ Share on other sites More sharing options...
trq Posted September 14, 2010 Share Posted September 14, 2010 which I believe use the Windows Command Prompt by default to perform these functions. What makes you think that? Quote Link to comment https://forums.phpfreaks.com/topic/213392-phpcmd/#findComment-1110985 Share on other sites More sharing options...
kool_samule Posted September 14, 2010 Author Share Posted September 14, 2010 Only through testing on my existing server. Windows Server SBS2003, uses IIS, the only way I could get PHP to MKDIR was to grant access to CMD.EXE. Is there something I'm missing? Quote Link to comment https://forums.phpfreaks.com/topic/213392-phpcmd/#findComment-1110988 Share on other sites More sharing options...
trq Posted September 14, 2010 Share Posted September 14, 2010 PHP's mkdir implementation isn't just a simple wrapper around the CMD.exe, it is quite capable of making directories itself. Quote Link to comment https://forums.phpfreaks.com/topic/213392-phpcmd/#findComment-1110997 Share on other sites More sharing options...
kool_samule Posted September 14, 2010 Author Share Posted September 14, 2010 Well that's what I had learned, but in order to get these functionalities to work on IIS server, I had to change the security settings on the server's CMD.EXE. What I want to know is how can I get the PHP MKDIR to work, without having to change the security settings? Quote Link to comment https://forums.phpfreaks.com/topic/213392-phpcmd/#findComment-1111024 Share on other sites More sharing options...
trq Posted September 14, 2010 Share Posted September 14, 2010 You need to give the IUSR account permissions to the parent directory. Quote Link to comment https://forums.phpfreaks.com/topic/213392-phpcmd/#findComment-1111159 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.