WebFaction
Community site: login faq
0
1

What would be the steps I would need to take to install and set up the latest version of DokuWiki?

Or more specifically, how should I set the permissions for it to function correctly on Webfaction and for it to also be secure?


What I think I know so far:

  1. Download latest version from here

  2. Extract to a static App

  3. ???

Edit

I think I may need to do this for certain folders:

setfacl -R -m u:apache:rwx /path/to/directory

asked 14 Jan '11, 12:31

Acorn
382815
accept rate: 0%

edited 14 Jan '11, 16:44


After you download and extract the source files into your static app directory you bind it to a URL,

http://docs.webfaction.com/user-guide/websites.html

Than navigate to

http://domain.com/install.php

Fill out the form and that is it. You can check the file permissions with this command, just replace <appname> with the name of the application you want to check,

$ ls -laR ~/webapps/<appname>

They should be secure by default.

permanent link

answered 14 Jan '11, 13:52

johns
5.4k312
accept rate: 23%

So I don't need to change any permissions to allow php to write to DokuWiki's folders? I remember I had problems not being able to install plugins last time I tried installing DokuWiki.

(14 Jan '11, 13:58) Acorn

I set it up before I replied and did nothing other than what I outlined. I am able to edit content without an issue.

(14 Jan '11, 14:01) johns

Are you able to install plugins?

(14 Jan '11, 14:06) Acorn

Yes, no problem. It might have been a bug that caused the permissions issues, This happened for a number of users who were on our servers that used to have apache for a front-end when we converted them to nginx. But in general a PHP application should have access to its own directory without any extra configuration and still be secure. If you do run into any issues let us know in the form of a support ticket and we can look at the files directly.

(14 Jan '11, 14:17) johns

Okay, I'm pretty sure this is the correct process for installing DokuWiki with the correct permissions set for Apache.

First of all go through the standard installation steps:

  1. Go to your Webfaction control panel.

  2. Create a static app.

  3. Bind the new static app to a URL by creating a new "website".

  4. Log into your server via SSH

  5. Navigate to your newly created App's folder within ~/webapps/

  6. Download the latest version of DokuWiki from here. You can copy the URL and download it directly to the server by doing: wget htt://theurl.com/

  7. Extract DokuWiki by doing: tar xzf thedokuwikifile.tgz

  8. You can then set up the wiki for the first time by going to: http://yourdokuwikiurl.com/install.php

Then to set the correct permissions:

To allow Apache to write to the correct DokuWiki folders you need to do:

setfacl -R -m u:apache:rwx /yourdokuwikifolder/data/
setfacl -R -m u:apache:rwx /yourdokuwikifolder/conf/
setfacl -R -m u:apache:rwx /yourdokuwikifolder/lib/plugins/
permanent link

answered 14 Jan '11, 18:22

Acorn
382815
accept rate: 0%

Excellent! Worked perfectly. If i could upvote this answer i would, much better answer than the other one.

(11 Jul '12, 08:50) _jcv

I just installed DokuWiki version 2014-05-05a "Ponder Stibbons" on Webfaction on 2014-06-30. It works without the need to run the setfacl statements. fyi.

permanent link

answered 30 Jun '14, 20:37

davidfung
1112
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×102
×64
×33
×3

question asked: 14 Jan '11, 12:31

question was seen: 37,410 times

last updated: 30 Jun '14, 20:37

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM