Install dokuwiki on 2.x

**CMK version:2.0.0p24
**OS version:Centos 8

I recently migrated from 1.6. to 2.0.0p23 and found that dokuwiki is no longer there.
The file $OMD_ROOT/etc/dokuwiki and $OMD_ROOT/var/dokuwiki are present. So, I downloaded the tar file from dokuwiki homepage and placed it under $OMD_ROOT/local/share/dokuwiki as root user and restarted Apache.

As a test, I also copied it under $OMD_ROOT/share/ and also tried to copy $OMD_ROOT/share/ from an existing 1.6 site to 2.0.0p23 but no luck.

Accessing “http://localhost/mysite/wiki/doku.php?id=localhost:localhost” still says not found.
What am I missing here?

With 2.0 it was possible for myself to install inside the “~/local/share/dokuwiki/”. I had only to change a little bit the Apache config inside the site and also made some small changes in the dokuwiki config itself.
Now the but. With 2.1 it was not working anymore and i moved the dokuwiki outside the CMK site.
I only use the logged in user with a modified version of the “authmultisite” plugin.

1 Like

Thanks a lot @andreas-doehler

I had only to change a little bit the Apache config inside the site and also made some small changes in the dokuwiki config itself.

Can you tell me what I should do to make it work in 2.0 after copying the contents of the tar folder under ~/local/share/dokuwiki/ (BTW, I coped as root and restart omd apache).

I am accessing this URL but no luck http://localhost/mysite/local/wiki/doku.php?id=localhost:localhost

This is my Apache config which still exists after the upgrade.
$ cat etc/dokuwiki/apache.conf
##SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER

Alias /mysite/wiki/local “/omd/sites/mysite/local/share/dokuwiki/htdocs”

<Directory /omd/sites/mysite/local/share/dokuwiki/htdocs>
Order deny,allow
allow from all

Alias /mysite/wiki “/omd/sites/mysite/share/dokuwiki/htdocs”

<Directory “/omd/sites/mysite/share/dokuwiki/htdocs”>
Order allow,deny
Allow from all

RewriteEngine on
RewriteCond “/omd/sites/mysite/local/share/dokuwiki/htdocs/$1” “-f”
RewriteRule "(.)" “/mysite/wiki/local/$1”
RewriteRule .
- [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

Hi @andreas-doehler @davidwayne

I recently wrote a KB article Install Dokuwiki on Checkmk 2.0 - Checkmk Knowledge Base - Checkmk Knowledge Base but it currently works on 2.0.

Please give us some feedback.

1 Like

Thanks a ton :pray:. I am finally able to make it work after following your documentation.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.