plugin:file2dw
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
plugin:file2dw [2018-11-23 12:21] – created qky666 | plugin:file2dw [2023-10-29 13:16] (current) – Klap-in | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : qky669@gmail.com | email : qky669@gmail.com | ||
type : action | type : action | ||
- | lastupdate : 2018-11-23 | + | lastupdate : 2019-03-20 |
compatible : Greebo, 2018-04-22 | compatible : Greebo, 2018-04-22 | ||
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : import, odt, doc, docx, pandoc, soffice | + | tags : import, odt, docx, pandoc, soffice |
downloadurl: | downloadurl: | ||
Line 22: | Line 22: | ||
===== Installation ===== | ===== Installation ===== | ||
+ | |||
+ | ==== Direct install ==== | ||
:!: **External requirements: | :!: **External requirements: | ||
Line 27: | Line 29: | ||
* soffice (ex: libreoffice-writer) | * soffice (ex: libreoffice-writer) | ||
- | If you run the Dokuwiki | + | If you run the DokuWiki |
- | * Install some packages needed: | + | * Install some packages needed:< |
- | + | * If you wish, you can execute the script // | |
- | < | + | |
- | + | ||
- | * If you wish, you can execute the script // | + | |
Install the plugin using the [[plugin: | Install the plugin using the [[plugin: | ||
- | ==== soffice conversion (.doc support) | + | === soffice conversion (.doc support) === |
- | PHP code (at least in my system) is executed by the user //daemon//. I had problems running a Java application with this user (it seems soffice is a Java application) so I decided to run the soffice conversion using //sudo//. To make it work, I had to add a line to the file /// | + | PHP code (at least in my system) is executed by the user //www-data//. I had problems running a Java application with this user (it seems soffice is a Java application) so I decided to run the soffice conversion using //sudo//. To make it work, I had to add a line to the file /// |
- | < | + | < |
I'm not a security expert, but I think that this should not be a problem for anybody. If you do not use the soffice conversion (.doc support), you don't need to do this. | I'm not a security expert, but I think that this should not be a problem for anybody. If you do not use the soffice conversion (.doc support), you don't need to do this. | ||
If PHP code is executed by any other user on your system, you only have to change it in the previous command. | If PHP code is executed by any other user on your system, you only have to change it in the previous command. | ||
+ | |||
+ | ==== Docker ==== | ||
+ | |||
+ | If you want, you can use Docker to deploy Dokuwiki and meet the requirements mentioned above “for free”. If you are new to Docker, you will probably need to search the web for information before you can use it. See https:// | ||
+ | |||
+ | You will have to make several changes in // | ||
+ | |||
+ | **Note**: This creates an “empty” DokuWiki, so you will have to follow the install instructions in [[: | ||
+ | |||
+ | Two “flavours” are provided: | ||
+ | |||
+ | * //simple// | ||
+ | * //proxy// | ||
+ | |||
+ | === Simple === | ||
+ | |||
+ | Path: // | ||
+ | |||
+ | A simple // | ||
+ | |||
+ | To run this, execute: | ||
+ | |||
+ | < | ||
+ | cd docker/ | ||
+ | docker-compose up -d | ||
+ | </ | ||
+ | |||
+ | === Proxy === | ||
+ | |||
+ | Path: // | ||
+ | |||
+ | A // | ||
+ | |||
+ | It uses [[https:// | ||
+ | |||
+ | To run this, execute: | ||
+ | |||
+ | < | ||
+ | cd docker/ | ||
+ | docker-compose up -d | ||
+ | </ | ||
===== Usage ===== | ===== Usage ===== | ||
- | From a Dokuwiki | + | From a DokuWiki |
===== Configuration and Settings ===== | ===== Configuration and Settings ===== |
plugin/file2dw.1542972117.txt.gz · Last modified: 2018-11-23 12:21 by qky666