Connecting Tech Pros Worldwide Forums | Help | Site Map

Exec & IIS problem

shahid.juma@gmail.com
Guest
 
Posts: n/a
#1: Oct 12 '05
Hi,


I have an exe that I want to run with php. In the console, it works
perfectly fine.


There is a problem with security and it doesn't seem to run. I have
tried the following after reading various newsgroups and websites and
no luck.


1) Put the Exe file in the wwwroot and set permissions to the IUSER,
giving Read&Execute, even gave Full Control.
2) I also added Everyone too and still no luck
3) Moved the exe file to system32 folder and did the same above and
still no luck


Any ideas? Any help would be greatly appreciated.


Shahid


Steve
Guest
 
Posts: n/a
#2: Oct 12 '05

re: Exec & IIS problem


[color=blue]
> I have an exe that I want to run with php. In the console, it works
> perfectly fine.[/color]
[color=blue]
> There is a problem with security and it doesn't seem to run. I have
> tried the following after reading various newsgroups and websites and
> no luck.[/color]

See <http://www.php.net/features.safe-mode>.

---
Steve

Andy Hassall
Guest
 
Posts: n/a
#3: Oct 12 '05

re: Exec & IIS problem


On 12 Oct 2005 12:34:39 -0700, shahid.juma@gmail.com wrote:
[color=blue]
>I have an exe that I want to run with php. In the console, it works
>perfectly fine.
>
>There is a problem with security and it doesn't seem to run. I have
>tried the following after reading various newsgroups and websites and
>no luck.
>
>1) Put the Exe file in the wwwroot and set permissions to the IUSER,
>giving Read&Execute, even gave Full Control.
>2) I also added Everyone too and still no luck
>3) Moved the exe file to system32 folder and did the same above and
>still no luck
>
>Any ideas? Any help would be greatly appreciated.[/color]

Example code?
What were you trying to run?
What was the return code?
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
shahid.juma@gmail.com
Guest
 
Posts: n/a
#4: Oct 13 '05

re: Exec & IIS problem


Here is what I am doing:

<?
//echo exec('whoami');
//echo "<BR><BR>";
//echo exec('Encryption.exe s PublicKey.xml');
?>

<?php
$output = `Encryption.exe s PublicKey.xml`;
echo $output;
?>

Where Encryption.exe is a console application built using .NET. This
by itself works perfectly fine on command prompt.

Shahid

Closed Thread