Skip to content

Instantly share code, notes, and snippets.

@twogood
Created February 9, 2012 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twogood/1778113 to your computer and use it in GitHub Desktop.
Save twogood/1778113 to your computer and use it in GitHub Desktop.
/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