Forum


Replies: 5   Views: 3520
Unable to start openoffice
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by ralfjahr  · 11-04-2018 - 10:50

Hi,

we bought the premium license and want to use the Conversion Plugin, but we couldn't manage to get it running with the included OpenOffice an would like to avoid installing Libre Office on our Server.

When we try to start OpenOffice with the command from the documentation, we get the following errors:

lib/openoffice/openoffice.org3/program/soffice: 84: lib/openoffice/openoffice.org3/program/soffice: /mnt/www/planner/lib/composer/phpdocx/lib/openoffice/openoffice.org3/program/../basis-link/program/pagein: not found
lib/openoffice/openoffice.org3/program/soffice: 1: lib/openoffice/openoffice.org3/program/soffice: /mnt/www/planner/lib/composer/phpdocx/lib/openoffice/openoffice.org3/program/../basis-link/ure-link/bin/javaldx: not found
lib/openoffice/openoffice.org3/program/soffice: 120: lib/openoffice/openoffice.org3/program/soffice: /mnt/www/planner/lib/composer/phpdocx/lib/openoffice/openoffice.org3/program/soffice.bin: not found

This is the output of check.php:

PHP_VERSION: 5.6.30-0+deb8u1
PHP_OS: Linux
PHP_UNAME: Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26) x86_64
SERVER_NAME:
SERVER_SOFTWARE:
SERVER_ADDR:
SERVER_PROTOCOL:
HTTP_HOST:
HTTP_X_FORWARDED_FOR:
PHP_SELF: check.php
ZipArchive: 1
DomDocument: 1
SimpleXMLElement: 1
Tidy: 1
mbstring: 1

What are we doing wrong?

Thanks!

Posted by admin  · 11-04-2018 - 11:01

Hello,

It seems that some files haven't been copied (as symbolic links). Please try extracting the content of the package folder in the server directly, and check the files has correct rwx access.

Anyway, since phpdocx 4.5 the recommended conversion plugin is the one based on LibreOffice to get the best output (https://www.phpdocx.com/documentation/conversion-plugin/conversion-plugin-installation-and-set-up). We recommend you to install and configure the conversion plugin based on LibreOffice.

Regards.

Posted by ralfjahr  · 11-04-2018 - 11:39

I just deleted everything, unpacked it again, ran it and got the same error. The strange thing is that I can read pagein for example, but can't execute it (even with chmod 777).

Posted by admin  · 11-04-2018 - 11:58

Hello,

Please try running it standalone, this is out of PHP, running the main exec using CLI directly.

Regards.

Posted by ralfjahr  · 11-04-2018 - 12:04

Hi, I just did so, this is what I get:

symfony@debian:/mnt/www/p-trout-planner/lib/composer/phpdocx$ lib/openoffice/openoffice.org3/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard;
lib/openoffice/openoffice.org3/program/soffice: 84: lib/openoffice/openoffice.org3/program/soffice: /mnt/www/p-trout-planner/lib/composer/phpdocx/lib/openoffice/openoffice.org3/program/../basis-link/program/pagein: not found
lib/openoffice/openoffice.org3/program/soffice: 1: lib/openoffice/openoffice.org3/program/soffice: /mnt/www/p-trout-planner/lib/composer/phpdocx/lib/openoffice/openoffice.org3/program/../basis-link/ure-link/bin/javaldx: not found
lib/openoffice/openoffice.org3/program/soffice: 120: lib/openoffice/openoffice.org3/program/soffice: /mnt/www/p-trout-planner/lib/composer/phpdocx/lib/openoffice/openoffice.org3/program/soffice.bin: not found
symfony@debian:/mnt/www/p-trout-planner/lib/composer/phpdocx$

Thanks for any assistance.

Posted by admin  · 11-04-2018 - 12:21

Hello,

Sorry but we don't know why it's returning 'not found' messages if the files exist and have rx access. As it's a precompiled 32bits binary, and you are using a 64bits OS, maybe your OS can't run it.

Please install and use the conversion plugin based on LibreOffice.

Regards.