dagwieers/unoconv — Issue #44: IIS socket problem?
Author: lars-sh
Created: 2012-02-28 14:01:48+00:00
State: open

I'm working on simple "HOWTOs" to run unoconv (from SVN) via PHP on Ubuntu 11.10 (using Apache 2.2) and on Windows (using either Apache 2.2 or IIS 7.5).

On Apache 2.2 things go just right, but on IIS 7.5 unoconv starts successfully (I see the python.exe/soffice.bin/soffice.exe processes), but the request never ends. Finally I aborted the soffice.exe process and got some output.

```php
&1';
$windows = '"C:\\Program Files (x86)\\LibreOffice 3.5\\program\\python.exe" "D:\\www\\unoconv" --format="pdf" --verbose --verbose --verbose "D:\\www\\test.odt" 2>&1';
echo shell_exec($windows);
exit;
?>
```

This result in $windows = ```"C:\Program Files (x86)\LibreOffice 3.5\program\python.exe" "D:\www\unoconv" --format="pdf" --verbose --verbose --verbose "D:\www\test.odt" 2>&1``` creates the following output:

```
Office base location: C:\Program Files (x86)\LibreOffice 3.5
Office binary location: C:\Program Files (x86)\LibreOffice 3.5\program
Existing listener not found.
Launching our own listener using C:\Program Files (x86)\LibreOffice 3.5\program\soffice.exe.
LibreOffice listener successfully started. (pid=4208)
Verbosity set to level 2
Connection type: socket,host=localhost,port=2002;urp;StarOffice.ComponentContext
Failed to connect to C:\Program Files (x86)\LibreOffice 3.5\program\soffice.exe (pid=4208) in 6 seconds.
Connector : couldn't connect to socket (WSAECONNREFUSED, Connection refused)
Error: Unable to connect or start own listener. Aborting.
"
```

Do you have any idea what's the problem? Or maybe you could specify a range of problems, so I can check out things...

For me it seems to be a socket related problem. So does IIS require additional permissions here?