Forum


Replies: 4   Views: 3220
Giving user www-data read and write permissions in the directory /var/www/.config
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 admin  · 26-06-2017 - 08:14

Hello,

You don't need to change the core files. We recommend using putenv to set a custom HOME value dynamically if needed:

<?php
putenv("HOME=/var/www");

You don't need to copy LibreOffice to the folder .config.  LibreOffice uses this folder for temp files, so the user that calls LibreOffice (for example www-data is a common default user of apache) must have rw access to that folder.

Regards.