Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/etc/dokuwiki/local.php for multiple DokuWiki installations in Ubuntu
<?php
$host = strtolower($_SERVER['HTTP_HOST']);
$file['local'] = '/etc/dokuwiki/'.$host.'/local.php';
require_once($file['local']);
$prefix = '/var/lib/dokuwiki/'.$host.'/';
$conf['olddir'] = $prefix.'attic';
$conf['cachedir'] = $prefix.'cache';
$conf['lockdir'] = $prefix.'locks';
$conf['mediadir'] = $prefix.'media';
$conf['metadir'] = $prefix.'meta';
$conf['datadir'] = $prefix.'pages';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.