473,765 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
10 2399
On 28 mrt, 22:03, Jerry Stuckle <jstuck...@attg lobal.netwrote:
olafmol wrote:
On 28 mrt, 17:58, Jerry Stuckle <jstuck...@attg lobal.netwrote:
olafmol wrote:
On 28 mrt, 15:18, Jerry Stuckle <jstuck...@attg lobal.netwrote:
olafmol wrote:
On 28 mrt, 10:13, "Kimmo Laine" <s...@outolempi .netwrote:
<olafil...@ gmail.comwrote in message
>news:11*** *************** ****@y66g2000hs f.googlegroups. 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_COMPUTERNA ME
--
"Ohjelmoi ja on organismi joka muuttaa kofeiinia koodiksi" - lpkhttp://outolempi.net/ahdistus/-Satunnaisestipä ivittyvä nettisarjis
s...@outole mpi.net | rot13(x...@bhgb yrzcv.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
2785
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 some PHP scripts on my web server that talked to a MySQL database. I installed php4 and php4-mysql using apt-get. Unfortunatly I can't get the scripts to work. I keep getting the following error: Fatal error: Call to undefined function:...
3
2659
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 this? I configured sendmail with a relay so that all outgoing mails go through our organization's exchange mail server: DSexchange.domain.com. The php.ini file specified the path to sendmail: "sendmail_path= /usr/sbin/sendmail -t -i".
9
2519
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 and mysql working ok. Anonymous access is disabled, and root has been assigned a password and given full access to all tables from all hosts (i reliase this isn't secure but its only temporary for testing)
1
2795
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 correct order to create the database. What is the syntax for executing script files from Transact-SQL?
6
1390
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 through out the site. If I use <% Response.Write(Session("UserLevel")) %> on the login page then it shows that the session in is present and the correct value. but when I use <% Response.Write(Session("UserLevel")) %>. on any other page through...
7
2311
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!!! Our development server started life as an NT4 machine and has been simply upgraded from one operating system to the next, it is now a cross, NT4 Server, Win2000 Server, Win2003 server. All development sites work fine and under heavy stress. ...
4
6824
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 deleted on my IIS6 Win2003 environment, any idea?): <SCRIPT LANGUAGE="VBScript" RUNAT="Server"> Sub Application_OnStart End Sub
1
1440
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 the top I have the following line of code to include my .js file. <script src="scripts/SideNav.js" language="JavaScript" type="text/javascript"></script> that is inside the <head> tag. It used to work fine with a more hard coded version of...
0
5779
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 future upgrade, and this module won't work (other Perl scripts in IIS6 are OK, just not this Interbase module, which is critical). The error comes from Dynaloader.pm file, which I've read through, and it says that it's a generic message about external...
0
9398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9832
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8831
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7378
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5421
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.