Dokuwiki: installation and configuration
Php open-source wiki mainly includes:
Mediawiki: php
Dokuwiki: php
######################################## ####################
Install apache2 and php:
SudoApt-getInstallApache2 libapache2-mod-php5
Refer to apache configuration.
Install dokuwiki:
SudoA2enmod rewrite
Sudo cp-a doku... /Var/www/
Cd/var/www
Tar zxvf doku... -C dokuwiki
Chown-R www-data: www-data/var/www/dokuwiki
Modify path:
SudoVi/Etc/apache2/sites-enabled/000 *. conf
DocumentRoot/var/www/html → DocumentRoot/var/www/dokuwiki
Modify permissions:
SudoVi/Etc/apache2/apache2.conf
: Allow Override None → AllowOverride All
Restart apache2:
SudoService apache2 restart
Install on the web:
http://IP-address-of-your-server/install.php toinitially configure your DokuWiki.
Delete after installation:
sudo rm /var/www/dokuwiki/install.php
Security Settings:
Data conf bin inc these four directories cannot be accessed through web (http and https.
Add the following configuration in/etc/apache2/apache2.conf or/usr/local/conf/httpd. conf:
# Allow access to the/var/www/dokuwiki/directory
order deny,allow
allow from all
# Forbidden access/var/www/dokuwiki/(data | conf | bin | inc)/directory
<locationmatch "="" (data|conf|bin|inc)="">
order allow,deny
deny from all
satisfy all
############################################################
Doku Configuration:
The doku configuration file is in/var/www/dokuwiki/conf/
The main file is usually managed by dokuwiki, and some files are created by the Administrator.
That is, we need to create and modify a local file for configuration.
Dokuwiki. php: Main configuration file
Local. php: local file
Local. protected. php: protection is not changed
Plugins. php: Default plug-in
Plugins. local. php: Modified by the plug-in Administrator
Plugins. required. php: Core plug-in
Plugins. protected. php: overwrite settings
User. auth. php: user Account Password
Acl. auth. php: Access Control Rules
Mediameta. php: editable metadata
License. php: available license
Mime. conf: Rules for uploading files
Acronyms. conf: auto indent prompt
Smileys. conf: Image supplement
Entities. conf: Text supplement
Interwiki. conf: shortcut
Scheme. conf: url scheme
Wordblock. conf: Spam list
############################################################
Dokuwiki plug-ins and template management:
For manual installation, download and decompress the package to the following path, and chown is www-data:
/Var/www/dokuwiki/lib/tpl for template Installation
/Var/www/dokuwiki/lib/plugins to install plug-ins
Automatic Installation is to manage and install templates on the web page of dokuwiki.