Question

How do I run Dokuwiki on LAMP server?

  • Posted on March 2, 2015
  • Fox123Asked by Fox123

Hello. I would like to run dokuwiki on LAMP server.

And i will run other dokuwiki on same server. For example… ABC.com/A wiki   /B wiki   /C wiki

But I don’t know what to do.

I just finished to create droplet.

Could you tell me what to do?


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Assuming you have a basic LAMP setup like the one used by the DigitalOcean One-Click application or as described in this tutorial, creating multiple wikis under the same domain is as simple as creating sub-folders in the /var/www/html directory.

First we’ll download Dokuwiki itself and extract it in our home directory:

  1. cd ~
  2. wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
  3. tar xzvf dokuwiki-stable.tgz
  4. rm dokuwiki-stable.tgz

Now we’ll make two copies in the wiki-a and wiki-b subfolders:

  1. cp -R dokuwiki* /var/www/html/wiki-a
  2. cp -R dokuwiki* /var/www/html/wiki-b

We’ll also need to make one addition to our Apache VitualHost. This is to make sure that certain directories are not publicly accessible on the internet. Edit the file /etc/apache2/sites-enabled/000-default.conf and add the following inside the VitualHost block.

/etc/apache2/sites-enabled/000-default.conf
<LocationMatch "/(data|conf|bin|inc)/">
    Order allow,deny
    Deny from all
    Satisfy All
</LocationMatch>

Next, make sure the permissions are correct:

  1. sudo chown -R www-data:www-data /var/www/html

Finally, you can finish installation by visiting the URLs for both wikis:

http://your.ip.addr/wiki-a/install.php
http://your.ip.addr/wiki-b/install.php