Scroll to navigation



dokuwiki-addsite - Create a new site driven by DokuWiki


dokuwiki-addsite [options] {SITE_NAME}


DokuWiki is a standards compliant, simple to use wiki mainly aimed at creating documentation of any kind.

dokuwiki-addsite creates the file hierarchy and configuration required to define a new site driven by the installed DokuWiki engine.



Do create any administrator user and do not ask for a password.

-h, --help

Show a help message and exit.


Name of the site to create. For a virtual host-based setup, it reflects the corresponding hostname. For instance, for a site accessible at an address such as, it can be either,, or even

For a directory or htaccess-based setup, this is the corresponding site identifier. For instance, for a site accessible at an address such as, rewritten by the web server as doku.php?animal=project, it is simply project.


The site configuration is stored in /etc/dokuwiki/farm/SITE_NAME/, and the data is stored in /var/lib/dokuwiki/farm/SITE_NAME/, as indicated in the site configuration.

In a virtual host-based setup, if you need to make a given site accessible at several URLs, you can symlink its configuration directory to another name (it is not necessary to symlink the data directory).

If you need to rename a site, you can rename the configuration and data directories, and edit the configuration to point to the new data directory.


No check is done against the SITE_NAME, just avoid names like ../../../etc.

Please report any bug to the Debian BTS.




Tanguy Ortolo <>

Wrote this manpage for the Debian system.


Copyright © 2011 Tanguy Ortolo

This manual page was written for the Debian system (and may be used by others).

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 or (at your option) any later version published by the Free Software Foundation.

On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.

04/18/2014 DokuWiki