473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

problem executing command line scripts on Win2003 IIS6 PHP4 box

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

Mar 28 '07 #1
10 2364
<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)
Mar 28 '07 #2
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

Mar 28 '07 #3
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
==================
Mar 28 '07 #4
On 28 mrt, 15:18, Jerry Stuckle <jstuck...@attglobal.netwrote:
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.
Hello,

all the permissions are ok, i even put "everyone" to all rights. I can
create normal directories, and pipe directory readings to new files,
this works without a problem. But when i try to execute ffmpeg i get
this returncode 128.
Furthermore, when i try to execute ImageMagick's convert.exe without
parameters, i get the regular output of convert.exe back, but when i
try to convert some images i get a false returncode back.
Could it be something with my PHP installation?

Olaf
Mar 28 '07 #5
olafmol wrote:
On 28 mrt, 15:18, Jerry Stuckle <jstuck...@attglobal.netwrote:
>olafmol wrote:
>>On 28 mrt, 10:13, "Kimmo Laine" <s...@outolempi.netwrote:
<olafil...@gmail.comwrote in message
news:11**********************@y66g2000hsf.googl egroups.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.

Hello,

all the permissions are ok, i even put "everyone" to all rights. I can
create normal directories, and pipe directory readings to new files,
this works without a problem. But when i try to execute ffmpeg i get
this returncode 128.
Furthermore, when i try to execute ImageMagick's convert.exe without
parameters, i get the regular output of convert.exe back, but when i
try to convert some images i get a false returncode back.
Could it be something with my PHP installation?

Olaf

It's always possible it's something in your installation. But it sounds
more like convert.exe can't access some resource. Maybe a temp
directory? I don't know.

Is there anything in your error log file, or your Windows Event log
about it?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Mar 28 '07 #6
On 28 mrt, 17:58, Jerry Stuckle <jstuck...@attglobal.netwrote:
olafmol wrote:
On 28 mrt, 15:18, Jerry Stuckle <jstuck...@attglobal.netwrote:
olafmol wrote:
On 28 mrt, 10:13, "Kimmo Laine" <s...@outolempi.netwrote:
<olafil...@gmail.comwrote in message
news:11**********************@y66g2000hsf.googl egroups.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/-Satunnaisestipä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.
Hello,
all the permissions are ok, i even put "everyone" to all rights. I can
create normal directories, and pipe directory readings to new files,
this works without a problem. But when i try to execute ffmpeg i get
this returncode 128.
Furthermore, when i try to execute ImageMagick's convert.exe without
parameters, i get the regular output of convert.exe back, but when i
try to convert some images i get a false returncode back.
Could it be something with my PHP installation?
Olaf

It's always possible it's something in your installation. But it sounds
more like convert.exe can't access some resource. Maybe a temp
directory? I don't know.

Is there anything in your error log file, or your Windows Event log
about it?

--
there doesn't seem to be any error-events in the logs. Convert.exe can
access the resources ok when the PHP script is ran from the
commandline with PHP.exe. Very strange. I think it has something to do
with our PHP config and/or some obscure security setting somewhere...

Olaf
Mar 28 '07 #7
olafmol wrote:
On 28 mrt, 17:58, Jerry Stuckle <jstuck...@attglobal.netwrote:
>olafmol wrote:
>>On 28 mrt, 15:18, Jerry Stuckle <jstuck...@attglobal.netwrote:
olafmol wrote:
On 28 mrt, 10:13, "Kimmo Laine" <s...@outolempi.netwrote:
><olafil...@gmail.comwrote in message
>news:11**********************@y66g2000hsf.goo glegroups.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/-Satunnaisestipä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.
Hello,
all the permissions are ok, i even put "everyone" to all rights. I can
create normal directories, and pipe directory readings to new files,
this works without a problem. But when i try to execute ffmpeg i get
this returncode 128.
Furthermore, when i try to execute ImageMagick's convert.exe without
parameters, i get the regular output of convert.exe back, but when i
try to convert some images i get a false returncode back.
Could it be something with my PHP installation?
Olaf
It's always possible it's something in your installation. But it sounds
more like convert.exe can't access some resource. Maybe a temp
directory? I don't know.

Is there anything in your error log file, or your Windows Event log
about it?

--

there doesn't seem to be any error-events in the logs. Convert.exe can
access the resources ok when the PHP script is ran from the
commandline with PHP.exe. Very strange. I think it has something to do
with our PHP config and/or some obscure security setting somewhere...

Olaf

Maybe completely off here, but isn't it true the commandline version
runs as YOU, and the IIS-server parsed version runs as the server? So
the fact the cli version works doesn't mean you still are facing a
rights issue...

Sh.
Mar 28 '07 #8
On 28 mrt, 19:21, Schraalhans Keukenmeester <bitbuc...@invalid.spam>
wrote:
olafmol wrote:
On 28 mrt, 17:58, Jerry Stuckle <jstuck...@attglobal.netwrote:
olafmol wrote:
On 28 mrt, 15:18, Jerry Stuckle <jstuck...@attglobal.netwrote:
olafmol wrote:
On 28 mrt, 10:13, "Kimmo Laine" <s...@outolempi.netwrote:
<olafil...@gmail.comwrote in message
>news:11**********************@y66g2000hsf.goo glegroups.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 worksok
>when i run the PHP script from the commandline on the server, butwhen
>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/-Satunnaisestipä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.
Hello,
all the permissions are ok, i even put "everyone" to all rights. I can
create normal directories, and pipe directory readings to new files,
this works without a problem. But when i try to execute ffmpeg i get
this returncode 128.
Furthermore, when i try to execute ImageMagick's convert.exe without
parameters, i get the regular output of convert.exe back, but when i
try to convert some images i get a false returncode back.
Could it be something with my PHP installation?
Olaf
It's always possible it's something in your installation. But it sounds
more like convert.exe can't access some resource. Maybe a temp
directory? I don't know.
Is there anything in your error log file, or your Windows Event log
about it?
--
there doesn't seem to be any error-events in the logs. Convert.exe can
access the resources ok when the PHP script is ran from the
commandline with PHP.exe. Very strange. I think it has something to do
with our PHP config and/or some obscure security setting somewhere...
Olaf

Maybe completely off here, but isn't it true the commandline version
runs as YOU, and the IIS-server parsed version runs as the server? So
the fact the cli version works doesn't mean you still are facing a
rights issue...

Sh.
I think you might be right somewhere. The thing is i now have run the
application pool for the website i am using under a more powerfull
account, and now i can use convert.exe without a problem.
Still, the ffmpeg.exe returns code 128.

Olaf

Mar 28 '07 #9
olafmol wrote:
On 28 mrt, 17:58, Jerry Stuckle <jstuck...@attglobal.netwrote:
>olafmol wrote:
>>On 28 mrt, 15:18, Jerry Stuckle <jstuck...@attglobal.netwrote:
olafmol wrote:
On 28 mrt, 10:13, "Kimmo Laine" <s...@outolempi.netwrote:
><olafil...@gmail.comwrote in message
>news:11**********************@y66g2000hsf.goo glegroups.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/-Satunnaisestipä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.
Hello,
all the permissions are ok, i even put "everyone" to all rights. I can
create normal directories, and pipe directory readings to new files,
this works without a problem. But when i try to execute ffmpeg i get
this returncode 128.
Furthermore, when i try to execute ImageMagick's convert.exe without
parameters, i get the regular output of convert.exe back, but when i
try to convert some images i get a false returncode back.
Could it be something with my PHP installation?
Olaf
It's always possible it's something in your installation. But it sounds
more like convert.exe can't access some resource. Maybe a temp
directory? I don't know.

Is there anything in your error log file, or your Windows Event log
about it?

--

there doesn't seem to be any error-events in the logs. Convert.exe can
access the resources ok when the PHP script is ran from the
commandline with PHP.exe. Very strange. I think it has something to do
with our PHP config and/or some obscure security setting somewhere...

Olaf

Very strange. But it still looks like a security issue. What happens
if you sign on with the web servers userid and try to execute it?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Mar 28 '07 #10
On 28 mrt, 22:03, Jerry Stuckle <jstuck...@attglobal.netwrote:
olafmol wrote:
On 28 mrt, 17:58, Jerry Stuckle <jstuck...@attglobal.netwrote:
olafmol wrote:
On 28 mrt, 15:18, Jerry Stuckle <jstuck...@attglobal.netwrote:
olafmol wrote:
On 28 mrt, 10:13, "Kimmo Laine" <s...@outolempi.netwrote:
<olafil...@gmail.comwrote in message
>news:11**********************@y66g2000hsf.goo glegroups.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 worksok
>when i run the PHP script from the commandline on the server, butwhen
>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/-Satunnaisestipä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.
Hello,
all the permissions are ok, i even put "everyone" to all rights. I can
create normal directories, and pipe directory readings to new files,
this works without a problem. But when i try to execute ffmpeg i get
this returncode 128.
Furthermore, when i try to execute ImageMagick's convert.exe without
parameters, i get the regular output of convert.exe back, but when i
try to convert some images i get a false returncode back.
Could it be something with my PHP installation?
Olaf
It's always possible it's something in your installation. But it sounds
more like convert.exe can't access some resource. Maybe a temp
directory? I don't know.
Is there anything in your error log file, or your Windows Event log
about it?
--
there doesn't seem to be any error-events in the logs. Convert.exe can
access the resources ok when the PHP script is ran from the
commandline with PHP.exe. Very strange. I think it has something to do
with our PHP config and/or some obscure security setting somewhere...
Olaf

Very strange. But it still looks like a security issue. What happens
if you sign on with the web servers userid and try to execute it?

--
i didn't try. I got things working now by downloading another
ffmpeg.exe win binary build, with the same security-settings that got
convert.exe working this ffmpeg.exe worked 'out of the box'. I guess
it has something to do with some .dll (cygwin?) files or something
that where installed using another account or something. This is all
very confusing but i'm happy i've got it working now.

cheers all! Olaf
Mar 28 '07 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David | last post by:
Hi, I am running Debian 3.0r1 with Apache 1.3.27, MySQL 3.23.49 and PHP 4.3.3RC3. I installed Apache and MySQL when I originally installed Debian and these work fine. I recently wanted to run...
3
by: Lu | last post by:
Hi, I have a redhat 9 linux machine running apache 2.0.47, mysql 4.0.15, and php 4.3.4. I have been puzzled by this mail() problem for quite a while, could someone please give me some hint on...
9
by: Sheldon | last post by:
Hi, I have a mysql setting problem that is driving me mad. Hopefully someone can give some advice: On the local network I have windows 2000/iis5 machine running our intranet site, with php...
1
by: Phil | last post by:
Hi, I have my create statments for tables, procedures, views, etc in individual Transact-SQL script files (.sql). I wnat to write another script file that executes these scripts in the...
6
by: Paul | last post by:
Hi all, I seem to been having a problem with sessions. I have a session in the login page Session("UserLevel") = (MM_rsUser.Fields.Item("Accesslevel").Value) which doesn't seem to be visible...
7
by: Adam Short | last post by:
I'm having all sorts of problems with Sessions, I've been using them for years with out a hitch, all of a sudden the last 6 - 12 months since getting our new Win2003 server it's all gone shakey!!!...
4
by: Propin | last post by:
Have a problem with below code in global.asa. Same problem as described in this news group before, IWAM_machinename did not solve my problem. Have created the following test code (file is never...
1
by: KShapiro | last post by:
Hi All, I am trying to assist my wife, by making a simple menu system for the website. The web page is a .php4 file and does an include of the navigation file. Before it includes that file at...
0
by: OverTheTop | last post by:
All the usual Newbie stuff applies... I have a Windows2000 Server with ActivePerl and a module (DBD-Interbase) that worked fine. Trying to duplicate the environment on Windows2003 Server for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.