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?
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!
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:
- cd ~
- wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
- tar xzvf dokuwiki-stable.tgz
- rm dokuwiki-stable.tgz
Now we’ll make two copies in the wiki-a and wiki-b subfolders:
- cp -R dokuwiki* /var/www/html/wiki-a
- 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.
<LocationMatch "/(data|conf|bin|inc)/">
Order allow,deny
Deny from all
Satisfy All
</LocationMatch>
Next, make sure the permissions are correct:
- 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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.