devfoundry Posted December 6, 2006 Share Posted December 6, 2006 Hi all,I am using Apache 2, php 4.4.4 on win2k. I have an executable file when i pass some parameters in this file it's returns and XML string.When I run this with APACHE server it's work absolutely fine, But when I tested this script on IIS this script fail.My code is:$file = "c:/path/to/file/file.ext";$executable = "c:/path/to/executable/ext";$command = "$executable -jf yes -if $file";exec($command, $output, $return);On apache it's runs successfully but on IIS it returns 128. I also tried other commands like system, shell_exec, passthru but the result is same. I also used cotted commands but they work only on apache not on IIS.I dont know what this 128 stands for ???.Please help me. Quote Link to comment Share on other sites More sharing options...
bqallover Posted December 6, 2006 Share Posted December 6, 2006 It appears that error code 128 is a general Win error triggerred by a failed call to CreateProcess(), which sounds right given your situation. You might want to have a look at [url=http://www.hanselman.com/blog/ASPNETCompilerError128AndMicrosoftSupport.aspx]this page[/url] and the linked KB articles. Sorry I'm not an IIS guru so that's all I can suggest. BTW, have you got PHP set up correctly with IIS and tested it? Also which version of IIS are you running, as this seems to have some impact on the problem. Quote Link to comment Share on other sites More sharing options...
craygo Posted December 6, 2006 Share Posted December 6, 2006 In order for you to run commands in a directory other than the wwwroot directory on windows you have to give permission to the IUSR_[i]computername[/i] to that file or directory. If you are giving permission to a folder make sure you click advanced and check off "Replace permisiion on child objects... blah blah blah" This has the same effect as a recursive change on a linux box. I have done alot of php with IIS so let me know if you have problems. Ray Quote Link to comment 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.