Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IIS socket problem? #44

Closed
lars-sh opened this issue Feb 28, 2012 · 1 comment
Closed

IIS socket problem? #44

lars-sh opened this issue Feb 28, 2012 · 1 comment
Labels

Comments

@lars-sh
Copy link
Contributor

lars-sh commented Feb 28, 2012

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
header('Content-Type: text/plain; charset=utf-8');
$ubuntu = '"/usr/bin/python" "/var/www/unoconv" --format="pdf" --verbose --verbose --verbose "/var/www/test.odt" 2>&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?

@lars-sh
Copy link
Contributor Author

lars-sh commented Mar 2, 2012

Okay guys, it's a permission problem with the IUSR account. Changing from Pass-Through-Authentication to a static user helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant