Difference between revisions of "User:Paul/sandbox/Install Dokuwiki to OpenBSD"

From UNPM.org Wiki
Jump to navigation Jump to search
Line 31: Line 31:
  
 
  code {
 
  code {
     padding: 5px;
+
     padding: 2px 5px;
 
  }
 
  }
  

Revision as of 22:37, 8 October 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 the userstyle.css file and add the padding to the CSS:

servername /home/username
$ doas nano /var/www/unpm.net/public/conf/userstyle.css

Add the following to the file:

code {
    padding: 2px 5px;
}

Upgrading

Since Dokuwiki is installed to the server