Re: At my wit's end - For some reason abiword.exe will not execute via command line called via PHP4.4/IIS 7/ Windows Server 2008

From: Dominic Lachowicz <domlachowicz_at_gmail.com>
Date: Fri Nov 26 2010 - 04:02:27 CET

If I remember correctly, AbiWord on Windows detaches itself from the
calling command console. Instead of calling AbiWord directly, invoke
it via 'cmd /wait abiword arguments'. Give that a shot, and let me
know if it works.

On Thu, Nov 25, 2010 at 9:47 PM, Martin Sevior <msevior@gmail.com> wrote:
>
> Hi Hersam,
>
> I'm forwarding your problem to the abiword development list. Sorry I'm
> a linux guy so I have idea what is going wrong here. I know that
> abiword is used in server mode routinely on linux systems in mission
> critical applications. For example our website, http://abicollab.net
> has long-running abiword processes for much of it's functionality.
>
> Hopefully someone on the abiword-devel list can help you with your
> abiword on windows server problem.
>
> Best regards,
>
> Martin
>
> On Thu, Nov 25, 2010 at 5:27 AM, El Shami, Hesham
> <HeSham.ElShami@cibc.ca> wrote:
>> Hi everyone,
>>
>> Any guidance you can provide is much appreciated. I just need another pair of eyes or brains to hint me what else I should be looking at.
>>
>> The problem description:
>> I can run the command line fine if I log in myself (Administrator) onto the server and run it. So I know abiword works.
>> The trouble comes when I try to execute the same command line through PHP.
>>
>> Details:
>>
>> I've provided fully security permissions anywhere from local admin, network services, everyone, iis_iusrs... To both the locaion where abiword resides and to the target location where the converted file is to be dumped.
>>
>> I've also added abiword directory into the windows path and called abiword.exe by name alone (not specifying the path).
>>
>> I get an error number when executed via php using the exec function. The returned value is -1073741819.
>>
>> I've run other command line utilities via PHP from the same location and targetting the same target locations to see if permissions are fine, and that works fine.
>>
>> If I run the exact same logged command myself on the server, it runs successfully.
>>
>> I've made a makeshit log , and here's what I have: (a return value of 0 is desirable).
>>
>> 2010-11-24 11:48:13 - command:AbiWord.exe d:\\php44\\TEMP\0a040e82-41cd-aa34.DOC  --verbose=0 --to=html --to-name=D:/TSC/files/KB044757/44757.HTML
>> 2010-11-24 11:48:17 - command executed:-1073741819
>> 2010-11-24 11:48:17 - command executed:
>> 2010-11-24 11:48:17 - command:set
>> 2010-11-24 11:48:17 - command executed retval:0
>> 2010-11-24 11:48:17 - command executed arrayjoin:ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Windows\system32\config\systemprofile\AppData\Roaming APP_POOL_ID=DefaultAppPool CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=server-AB-1234 ComSpec=C:\Windows\system32\cmd.exe FP_NO_HOST_CHECK=NO LOCALAPPDATA=C:\Windows\system32\config\systemprofile\AppData\Local NUMBER_OF_PROCESSORS=1 OS=Windows_NT Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;d:\php44;d:\abiword;d:\abiword\abiword;d:\abiword\abiword\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PHPRC=D:\PHP44 PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 8, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0f08 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files PROMPT=$P$G PUBLIC=C:\Users\Public SystemDrive=C: SystemRoot=C:\Windows TEMP=C:\Windows\TEMP TMP=C:\Windows\TEMP USERDOMAIN=ADP1 USERNAME=server-AB-1234$ USERPROFILE=C:\Windows\system32\config\systemprofile windir=C:\Windows
>> 2010-11-24 11:48:17 - command:nbtscan.exe -V > d:\tsc\files\nbtscan_version.txt
>> 2010-11-24 11:48:17 - command executed retval:0
>> 2010-11-24 11:48:17 - command executed arrayjoin:
>> 2010-11-24 11:48:17 - command:AbiWord.exe d:\php44\test.DOC  --verbose=2 --to=html --to-name=44752.HTML
>> 2010-11-24 11:48:21 - command executed retval:-1073741819
>> 2010-11-24 11:48:21 - command executed arrayjoin:
>>
>>
>>
>> Regards,
>>
>> Hesham El Shami
>> Operations Specialist - Technology Support Centre
>> CIBC - End User Services
>> Telephone: 416-681-7400 x 8304
>> mailto:hesham.elshami@cibc.ca
>>
>> This message, including any attachments, is intended for only the use of the individual(s) to which it is addressed and may contain information that is privileged / confidential. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply e-mail and permanently delete this message including any attachments, without reading it or making a copy.
>>
>> P Please consider your environmental responsibility before printing this e-mail
>>
>> Thank you.
>>
>>
> -----------------------------------------------
> To unsubscribe from this list, send a message to
> abiword-user-request@abisource.com with the word
> unsubscribe in the message body.
>

-- 
"I like to pay taxes. With them, I buy civilization." --  Oliver Wendell Holmes
Received on Fri Nov 26 04:02:35 2010

This archive was generated by hypermail 2.1.8 : Fri Nov 26 2010 - 04:02:35 CET