dagwieers/unoconv — Issue #42: Unable to run unoconv from PHP
Author: brianvic
Created: 2012-02-21 16:24:57+00:00
State: open

I've checked as many of the similar errors as I can, but nothing seems to match.

I have installed LibreOffice3.4 on RHEL5. I was unable to install unoconv via RPM or YUM so have used the SVN file and set it up manually. I can convert files via the command line without issue. It works well converting just about any format to PDF.

When I try to run the same command from PHP it just fails. I captured its output and the error is 'Cannot find a suitable pyuno library and python binary combination in /opt/libreoffice3.4' and '(RuntimeException):cannot open file:///root/.ure/types.rdb unoconv: Cannot find a suitable office installation on your system'.

PHP is running under Apache so shouldn't it be looking in the Apache home directory for files? And if so why is it trying to use root? Perhaps my manual setup is missing something? Or is there something I am unaware of in Apache?

For unoconv I didn't really do anything except place the file in /usr/bin. It will run from the command line whether I just enter unoconv or the full path to it. I can't log in as Apache to test if it would work or not.

Any pointers or advice?

Cheers!