在Win2003 IIS6 PHP4框上执行命令行脚本的问题 [英] problem executing command line scripts on Win2003 IIS6 PHP4 box
问题描述
你好,
我们在fastCGI配置中运行带有IIS6和PHP4的Win2003服务器。
当我尝试使用system()命令时执行ffmpeg.exe它工作正常
当我从服务器上的命令行运行PHP脚本时,但是当从webbrowser运行它时,我得到一个返回值:128没有什么
发生。
我检查了所有的安全设置,一切似乎都很好。
有没有人知道我应该在哪里看?
奥拉夫
< ol ******* @ gmail.com写信息
新闻:11 ********************** @ y66g2000hsf.googlegr oups.com ...
您好,
我们在fastCGI配置中运行带有IIS6和PHP4的Win2003服务器。
当我尝试使用system()命令执行ffmpeg.exe时它工作正常
当我从命令行运行PHP脚本时但是当
i从webbrowser运行它时,我得到一个返回值:128并且没有什么
发生。
我检查了所有的安全性设置,一切似乎都很好。
有没有人知道我应该在哪里寻找?
IIS用户是否有权执行cmd.exe? IIS用户是
类似于IUSR_COMPUTERNAME
-
" Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti p ?ivittyv? nettisarjis
sp**@outolempi.net | rot13(xv *** @ bhgbyrzcv.arg)
28 mrt,10:13,Kimmo Laine < s ... @ outolempi.netwrote:
< olafil ... @ gmail.comwrote in message
新闻:11 ********************** @ y66g2000hsf.googlegr oups.com ......
你好,
我们在fastCGI配置中使用IIS6和PHP4运行Win2003服务器。
当我尝试使用system()命令执行ffmpeg.exe它工作正常
当我从服务器上的命令行运行PHP脚本时,但当
i从webbrowser运行它我得到一个返回值:128并且没有任何
发生。
我检查了所有安全设置,一切似乎都很好。
有没有人有一个线索,我应该看?
IIS用户是否有权执行cmd.exe? IIS用户是
类似于IUSR_COMPUTERNAME
-
" Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpkhttp://outolempi.net/ahdistus/- Satunnaisesti p?ivittyv? nettisarjis
s ... @ outolempi.net | rot13(x ... @ bhgbyrzcv.arg)
是的,我没有得到无法分叉错误消息。这就是
照顾的。
奥拉夫
olafmol写道:
28 mrt,10:13,Kimmo Laine < s ... @ outolempi.netwrote:
>< olafil ... @ gmail.comwrote in message
新闻:11 ********************** @ y66g2000hsf.googleg roups.com ...
>>您好,我们在fastCGI配置中运行带有IIS6和PHP4的Win2003服务器。
当我尝试使用system()命令执行ffmpeg.exe时,它运行正常
当我从服务器上的命令行运行PHP脚本时,但是当我从webbrowser运行它时,我得到一个返回值:128并且没有任何事情发生。
我检查了所有的安全性设置,一切似乎都很好。
是否有人知道我应该在哪里寻找?
IIS用户是否有权执行cmd.exe? IIS用户类似于IUSR_COMPUTERNAME
- Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpkhttp://outolempi.net/ahdistus/- Satunnaisesti p?ivittyv? nettisarjis
s ... @ outolempi.net | rot13(x ... @ bhgbyrzcv.arg)
是的,我没有得到无法分叉错误消息。所以一直是
照顾的。
Olaf
Olaf,>
没有收到消息并不意味着什么。 IIRC,RC 128是一个
权限问题,而cmd.exe是一个真正的好赌注。
和BTW - Windows并没有分叉。 Linux确实如此。
-
==================
删除x来自我的电子邮件地址
Jerry Stuckle
JDS计算机培训公司
js ******* @ attglobal.net
==================
Hello,
we''re running an Win2003server with IIS6 and PHP4 in fastCGI config.
When i try to use system() command to execute ffmpeg.exe it works ok
when i run the PHP script from the commandline on the server, but when
i run it from the webbrowser i get a return value: 128 and nothing
happens.
I checked for all the security settings, and everything seems fine.
Does anybody have a clue where i should be looking?
Olaf
<ol*******@gmail.comwrote in message
news:11**********************@y66g2000hsf.googlegr oups.com...Hello,
we''re running an Win2003server with IIS6 and PHP4 in fastCGI config.
When i try to use system() command to execute ffmpeg.exe it works ok
when i run the PHP script from the commandline on the server, but when
i run it from the webbrowser i get a return value: 128 and nothing
happens.
I checked for all the security settings, and everything seems fine.
Does anybody have a clue where i should be looking?
Does the IIS user have permission to execute cmd.exe ? the IIS user is
something like IUSR_COMPUTERNAME
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti p?ivittyv? nettisarjis
sp**@outolempi.net | rot13(xv***@bhgbyrzcv.arg)
On 28 mrt, 10:13, "Kimmo Laine" <s...@outolempi.netwrote:<olafil...@gmail.comwrote in message
news:11**********************@y66g2000hsf.googlegr oups.com...
Hello,
we''re running an Win2003server with IIS6 and PHP4 in fastCGI config.
When i try to use system() command to execute ffmpeg.exe it works ok
when i run the PHP script from the commandline on the server, but when
i run it from the webbrowser i get a return value: 128 and nothing
happens.
I checked for all the security settings, and everything seems fine.
Does anybody have a clue where i should be looking?
Does the IIS user have permission to execute cmd.exe ? the IIS user is
something like IUSR_COMPUTERNAME
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpkhttp://outolempi.net/ahdistus/- Satunnaisesti p?ivittyv? nettisarjis
s...@outolempi.net | rot13(x...@bhgbyrzcv.arg)yes, i don''t get the "unable to fork" error messages. So that has been
taken care of.
Olaf
olafmol wrote:On 28 mrt, 10:13, "Kimmo Laine" <s...@outolempi.netwrote:><olafil...@gmail.comwrote in message
news:11**********************@y66g2000hsf.googleg roups.com...
>>Hello,
we''re running an Win2003server with IIS6 and PHP4 in fastCGI config.
When i try to use system() command to execute ffmpeg.exe it works ok
when i run the PHP script from the commandline on the server, but when
i run it from the webbrowser i get a return value: 128 and nothing
happens.
I checked for all the security settings, and everything seems fine.
Does anybody have a clue where i should be looking?Does the IIS user have permission to execute cmd.exe ? the IIS user is
something like IUSR_COMPUTERNAME
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpkhttp://outolempi.net/ahdistus/- Satunnaisesti p?ivittyv? nettisarjis
s...@outolempi.net | rot13(x...@bhgbyrzcv.arg)
yes, i don''t get the "unable to fork" error messages. So that has been
taken care of.
Olaf
Olaf,
Not getting the message doesn''t mean anything. IIRC, RC 128 is a
permission problem, and cmd.exe is a real good bet.
And BTW - Windows doesn''t fork. Linux does.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
这篇关于在Win2003 IIS6 PHP4框上执行命令行脚本的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!