Difference between revisions of "User:Paul/sandbox/Install Dokuwiki to OpenBSD"
Line 20: | Line 20: | ||
The configuration is stored in the created file <code>/dokuwiki/conf/local.php</code>. Since this file is not part of the Dokuwiki package files, it should not get overwritten when updating Dokuwiki. | The configuration is stored in the created file <code>/dokuwiki/conf/local.php</code>. Since this file is not part of the Dokuwiki package files, it should not get overwritten when updating Dokuwiki. | ||
+ | |||
+ | === Add padding to inline code === | ||
+ | |||
+ | To add padding to inline code, create a <code>userstyle.css</code> file and add the padding CSS: | ||
+ | |||
+ | servername /home/username | ||
+ | $ doas nano /var/www/unpm.net/public/conf/userstyle.css | ||
+ | |||
+ | Add the following to the file: | ||
+ | |||
+ | code { | ||
+ | padding: 5px; | ||
+ | } | ||
== Upgrading == | == Upgrading == | ||
Since Dokuwiki is installed to the server | Since Dokuwiki is installed to the server |
Revision as of 20:52, 9 July 2021
The Dokuwiki project provides a very simple and highly functional wiki. Everything is stored in flat files so no database is required and it can be installed using the OpenBSD package manager.
Installation
Installing is as simple as it gets:
servername /home/username $ doas pkg_add dokuwiki
The installed will install dokuwiki
to /var/www/dokuwiki
and will also install the required version of PHP for the installed version of Dokuwiki plus any additional required PHP packages.
Dokuwiki can use PHP to manage images, but a better solution is to install ImageMagick:
servername /home/username $ doas pkg_add ImageMagick
Instead of running Dokuwiki from
Configuration
The configuration is stored in the created file /dokuwiki/conf/local.php
. Since this file is not part of the Dokuwiki package files, it should not get overwritten when updating Dokuwiki.
Add padding to inline code
To add padding to inline code, create a userstyle.css
file and add the padding CSS:
servername /home/username $ doas nano /var/www/unpm.net/public/conf/userstyle.css
Add the following to the file:
code { padding: 5px; }
Upgrading
Since Dokuwiki is installed to the server