[inhalt]
Projekt BISO 3 - Handbuch

← zurück

Word Vorlagen: Installation unter Linux Server

libreoffice

Installation

phpdocx

cd /var/www
mkdir .cache
chmod 777 .cache

Konfiguration via PHP (config.php)

// vor dem ersten Gebrauch von PHPDocx-Klassen:
require_once __DIR__ . '/components/phpdocx/classes/CreateDocx.php';
// Überschreiben der .ini-Direktiven direkt im Config-Array (Offizielle Methode von PHPDocx,
// siehe https://www.phpdocx.com/documentation/cookbook/setting-phpdocx-ini-php-code):
PhpdocxUtilities::$_phpdocxConfig['license']['code'] = 'custom key';
PhpdocxUtilities::$_phpdocxConfig['transform']['method'] = 'libreoffice';
PhpdocxUtilities::$_phpdocxConfig['transform']['path'] = '/opt/libreoffice6.1/program/soffice -env:UserInstallation=file:///tmp/biso/';

phpdocxconfig.ini (webroot/components/phpdocx/config/phpdocxconfig.ini)

; libreoffice or openoffice
method = "libreoffice"

; libreoffice installation path, absolute path
path = "/opt/libreoffice6.1/program/soffice -env:UserInstallation=file:///tmp/biso/"