Forum


Replies: 1   Views: 2368
Converting to pdf requires that the user be logged in.
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 vnyx  · 29-12-2017 - 21:21

I'm using a Mac OS X Server that is not logged in as the web server so the PDF generator doesn't work. It only works when logged in as a user. The soffice files are installed under /Applications like a normal app. Why do you have to be logged in at the console?

Posted by admin  · 30-12-2017 - 09:41

Hello,

The conversion plugin based on LibreOffice needs read and write access to the .config directory on the PHP HOME.

If you don't know this HOME folder you can run

getenv("HOME");

to get it.

You can change this path in the PHP config file or dynamically running this PHP line:

putenv("HOME=/var/www");

before doing the conversion (we are setting /var/www but you can set any other folder).

Regards.