Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
hello, This is a very useful tutorial and it helped me a lot for my ubuntu server. The downside of my situation is that i had to rebuild my server with a centos 7 os. Lucky for me, I somehow stumbled upon this great article http://bit.ly/1CHAhyT which explains how to install and run dokuwiki on centos 7. It works perfectly.
Kind regards to the digital ocean team.
Most of the instructions work okay for Ubuntu 16.04 but there are a few caveats worth mentioning.
1 - PHP has been updated quite a bit and so the PHP5 packages have been deprecated. Instead the base PHP packages should be used which will install PHP7 which gets installed to some slightly different locations. There is also a change in the packaging so an additional package is needed in order to avoid utf8_encode and utf8_decode not being available.
To install the correct packages use the following apt-get command instead:
sudo apt-get install php-fpm php-gd php7.0-xml
PHP configuration files are now in /etc/php/7.0 so the following command can be used to edit the PHP configuration file:
sudo nano /etc/php/7.0/fpm/php.ini
The default PHP configuration now uses sockets so there is no need to update the www.conf.
2 - The Nginx configuration is also slightly different.
The php location in the server block seems to work fine with the following:
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
The default location for content has also changed from /usr/share/nginx/www to /var/www/html so use the following commands to install DokuWiki to the correct location:
cd ~
wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
tar xzvf dokuwiki-stable.tgz
rm dokuwiki-stable.tgz
mv doku* wiki
sudo mv wiki /var/www/html/
cd /var/www/html/wiki
sudo chown -R www-data data
sudo chown www-data lib/plugins/
sudo chown www-data conf