We used DokuWiki to create and host our own internal Wiki on the latest version of Ubuntu Server (22.04.1 at the time of this writing). How cool is this? We’ll, it’s actually more than just ‘cool’ and can make for an invaluable tool used to centrally store crucial information while making it conveniently accessible to you and your teams.
If you’re new to DokuWiki and unfamiliar with PHP, installation and setup can be a daunting task. But not to worry because today we are going to fly you through installation step by step and as a bonus, show you the basics to get your Wiki up and running in no time.
From the horses mouth ->
DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn’t require a database. It is loved by users for its clean and readable syntax. The ease of maintenance, backup and integration makes it an administrator’s favorite. Built in access controls and authentication connectors make DokuWiki especially useful in the enterprise context and the large number of plugins contributed by its vibrant community allow for a broad range of use cases beyond a traditional wiki.
Full list of installation commands ->
1 – Update System
sudo apt-get update
2 – Install Apache And PHP
sudo apt-get install apache2 php php-gd php-xml php-json -y
3 – Start Apache Service
systemctl start apache2
systemctl enable apache2
4 – Install DokuWiki
cd /var/www
sudo wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
sudo tar xvf dokuwiki-stable.tgz
sudo mv dokuwiki-*/ dokuwiki
5 – Change Permissions
sudo chown -R www-data:www-data /var/www/dokuwiki
6 – Change Document Root In Apache To Point To /var/www/dokuwiki
sudo vim /etc/apache2/sites-enabled/000*.conf
Replace
DocumentRoot /var/www/html
with
DocumentRoot /var/www/dokuwiki
7 – Change AllowOverrides Setting In Apache2 To Use .htaccess files For Security
sudo vim /etc/apache2/apache2.conf
For directory /var/www/ replace
AllowOverride None
with
AllowOverride All
8 – Restart Apache2 Service
sudo service apache2 restart
9 – Visit http://IP-address-of-your-server/install.php to initially configure your DokuWiki.
10 – Delete The Install.php File After Finished Installing
sudo rm /var/www/dokuwiki/install.php
I install dokuwiki remotely over the network. How can I open access from the outside?