Description
dokuwiki是一个强大的wiki系统,简单轻量,插件丰富,很合适中小团队作为团队文档管理的工具。
Installation and Deployment
Install Apache2 and PHP on Ubuntu
Launch Apache's rewrite module
sudo a2enmod rewrite
Download the package and unzip the website
cd /var/wwwsudo wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgzsudo tar xvf dokuwiki-stable.tgzsudo mv dokuwiki-*/ dokuwiki
Modify permissions for DokuWiki
sudo chown -R 777 /var/www/dokuwiki
To modify the pointing path to the file root directory in Apache
sudo nano /etc/apache2/sites-enabled/000*.conf
Modified /var/www/html
to/var/www/dokuwiki
Modify the domain name to point
<VirtualHost 127.0.0.1>DocumentRoot /var/www/dokuwikiServerName 域名</VirtualHost>
Modify the configuration of the Allowoverrides, modify
sudo nano /etc/apache2/apache2.conf
AllowOverride None
Change the revision toAllowOverride All
Restart Apache2
sudo service apache2 restart
Apache2 The default listening port is 80, the following port occupancy prompts appear if other apps are occupied.
Starting httpd: (98) address already in use:make_sock:could not bind to Address [::]:80
(98) Address already in use:make_sock:could don't bind to address 0.0.0.0:80
No listening sockets available, shutting down
1) Modify the next apache2 configuration file httpd.conf listening port
2) Share 80 ports with other servers
Accesshttp://域名/dokuwiki/install.php
If this prompt is present, the permission is not modified or the modification is unsuccessful
DokuWiki Setup Error
The DataDir (' pages ') at./data/pages are not found, isn ' t accessible or writable. You should check your config and permission settings. Or maybe want to run the installer?
You should go back to 4 to re-modify DokuWiki's file permissions.
After the configuration is successful, delete the following files
sudo rm /var/www/dokuwiki/install.php
Start using.
Reference article:
Https://www.dokuwiki.org/install:ubuntu
Ubuntu System Setup DokuWiki