User Tools

Site Tools


databaseandnetworkmanagement:wiki_installation

Wiki Installation

Introduction

This page was created to provide document details of the current dokuwiki installation.


Location

Access Information

  • IP: 10.91.100.71 (scotty@blade2)
  • URL: wiki.err
  • Administrative account: scotty
  • Administrative account password: o**s

Each user requiring an account on the WIKI is responsible for creating such an account using the administrative account provided.

Installation Information

  • Apache HTTP Server web directory: /var/www/html
  • Watchdog: /home/scotty/watchdog
  • Hourly GIT push BASH script: /home/scotty/script/hourly_commit.sh

Installation Instructions

Installation Instruction

  • Connect to the required server via SSH (e.g. ssh scotty@10.91.100.71)
  • Install PHP (e.g. sudo yum install php)
  • Install Apache HTTP Server (e.g. sudo yum install httpd)
  • Download the latest DokuWiki - http://download.dokuwiki.org (use of the “wget” command is suggested)
  • Decompress the downloaded archive.
  • Move the contents of the unpacked “dokuwiki” folder to the Apache’s web directory
  • Via browser, access the “installer.php” file
  • If present, fix the accessibility issues by giving the required permissions to the relevant directories (the instructions will be provided by the installation PHP script)
  • Follow the installation instructions
  • Set the required permissions on the “data” (chmod -R 777) and “conf” folders (chmod -R 755).
  • Create the “.htaccess” file in the web directory
  • Add the “RewriteRule ^(data|conf|bin|inc) - [F,L,NC]” rule to the newly created “.htaccess” file
  • If any media upload issues persist, check that the chmod permissions allow the modification of the media folder (“data/media”).

Upgrade Instructions

  • Make a backup of the current DokuWiki installation
  • Download the latest DokuWiki version - http://download.dokuwiki.org (use of the “wget” command is suggested)
  • Decompress the downloaded archive
  • Copy the contents of the newly downloaded DokuWiki version into the currently used DokuWiki installation, overwriting the existing files (e.g. cp -a dokuwiki/. html)
  • Set the required permissions on the “data” (chmod -R 777) and “conf” folders (chmod -R 755).

Daily GIT Push Setup Instruction

Code

CRON Task # Backup internal wiki 0 * * * * /home/scotty/script/hourly_commit.sh > /home/scotty/script/hourly_commit.out 2>&1 Daily GIT Push BASH Script #!/bin/bash eval `ssh-agent` ssh-add /home/scotty/.ssh/id_rsa cd /var/www/html /usr/bin/git add -A /usr/bin/git commit -m “Hourly Commit (`/bin/date +'%Y-%m-%d %H:%M:%S'`)” /usr/bin/git push origin master if [ $? = 0 ]; then

echo Everything was successful

else

echo Everything failed

fi # echo “command result = $?”

Watchdog

'WikiHourlyGITPushCheck' { type = 'LOG' thresholds { a = [name: 'checkLog', type: 'EQUAL', value: ['Everything failed'], lev$ } parameters { logFileLocation = '/home/scotty/script/hourly_commit.out' renameLog = false } }

Also, do add “w = 'WikiHourlyGITPushCheck'” to the “resources” list.

Troubleshooting

If the Backup process is failing confirm the following.

Dokuwiki JS

  • The code is included in the “userscript.js” file located in the “conf” folder.
  • The “userscript.js” file contents are always executed on the page load.
  • The “Cookie JS” cookies' processing library is included in the “main.php” header (“<script src=”/lib/tpl/dokuwiki/js-cookiemaster/src/js.cookie.js“></script>”) (the “main.php” file can be located in the “lib/tpl/dokuwiki” folder)

Plugins Installation

  • In order to install new plugins, access the “lib/plugins” folder and retrieve the plugin ZIP file (use of the “wget” command is suggested).
  • Then unzip the file.
  • The new plugin will be ready to use.
  • Alternatively, one can use the “Extension Manager” which can be accessed from the “Administration” panel.
  • However, the server has to be configured to allow the DokuWiki installation to contact its plugin repository.

CSS Styling

  • In order to change the CSS styling, one can create a “userstyle.css” file in the “conf” folder.
  • However, there is a bug which will not activate the CSS changes until the administrator or another user with the appropriate permissions updates the “Template Style Settings”.
  • In order to resolve this bug, make the required CSS changes, access the “Template Style Settings” page, and click the “Save changes” button.

DokuWiki User Manual

Using Sidebar

  • In order to show the sidebar, hover your mouse over the left side of the page. The cursor will change to the dropdown list. When the cursor is in such state, click the left mouse button.
  • The sidebar will appear.
  • Hiding the sidebar is done in the same manner.

Creating Namespaces

  • Log in.
  • Type in the name of the namespace into the search box (e.g. “bob:”, where semicolon identifies the namespace). Alternatively, type in the name of the namespace and the page to be created (e.g. “bob:bobby”), and the namespaces will be created automatically with the page.
  • Click the pencil plus icon (located in the toolbar on the right side of the screen) in order to create the required page.
  • The namespace will be created automatically.

Updating Sidebar Navigation

Miscellaneous

Changing WIKI Page Width

  • Login as administrator
  • Click the “Admin” link (top right corner of the screen)
  • Select “Template Style Settings”
  • Change the “The width of the full site (can be any length unit: %, px, em, …)” value to the required one
  • Click the “Save Changes” button

Table of Contents Configuration

In order to set up the required configuration parameters allowing to show the TOC, one should access the configuration file (“dokuwiki.php”, located in the “conf” folder) and ensure that the following values are set:

  • $conf['tocminheads'] = 1; Minimum amount of headlines that determines if TOC is built * $conf['toptoclevel'] = 1; Level starting with and below to include in AutoTOC .
  • $conf['maxtoclevel'] = 5; Up to which level include into AutoTOC
databaseandnetworkmanagement/wiki_installation.txt · Last modified: 2023/05/16 10:33 by wflaherty