RE: Re: Can not execute exes from php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That is not a good solution - that way anybody can execute anything, from
anywhere. If you uses ISS, then you can let certain pages run as certain
user. Let the page that needs to do the shell execution run as a user that
can run cmd.exe.

Don't ask me how this is done with apache since I don't know.

-----Original Message-----
From: venkata ramana
To: PHP-Windows
Sent: 29-5-2004 19:29
Subject:  Re: Can not execute exes from php

After two days of google search and some other trials, I found the
problem. I have to give execute permissions to
%SystemRoot%/System32/cmd.exe for the user IUSR_sytemname, for getting
those commands executed.

regards,
ramana,

On Sat, 29 May 2004 14:12:33 +0530, venkata ramana <uvramana@xxxxxxxxx>
wrote:
> 
> Hi,
> 
>      Whenever I try to execute an exe file from a php program, I am
> getting an error saying
> "Warning: shell_exec(): Unable to execute 'xxxx..'. I am using IIS 6.0
> in windows server 2003.
> It is showing the same error even when I try to execute simple command
> like 'dir'. Please help me by telling what should I do to execute the
> exe files.
> 
> Thanks,
> ramana.
>

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux