Not logged in. · Lost password · Register
Forum: General Help and Support Server Setup RSS
How to run Dokuwiki on a Shared Network Drive
Avatar
QueueX #1
Member since Sep 2019 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: How to run Dokuwiki on a Shared Network Drive
Greetings,

I have been thinking of a way to document and collate knowledge within my department onto an easy to use and accessible wiki, and so for now I'm investigating the use of dokuwiki for my purposes.

I have managed to setup dokuwiki on my own computer, but the next step will be to make it available for people in my department.

I have come across two topics which involved running Dokuwiki-on-a-stick, both concluded that it is a bad idea:
1) https://forum.dokuwiki.org/thread/17171
2) https://forum.dokuwiki.org/thread/2110

I was planning to setup dokuwiki to run within the shared network drive, could anyone point me in the right direction? I am very new to networking and could use any pointers. Thank you very much!
Avatar
MartinR #2
Member since Jul 2015 · 168 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
First off, I'm assuming that the drive is served to other machines by NFS or CIFS (aka Windows shares) and is not directly accessible to multiple machines.

Consider how you interact with DW.  You run up a browser which contacts the web server which runs the DW code and that accesses the disk.  If there are multiple users, then each user runs up a browser on his own machine, which contact a web server somewhere which runs the DW code and accesses the disk.  Therefore: if your DW instance is running on one machine only, then all users can send requests, but only the DW instance accesses the disk.

In detail:
  • Each user's computer runs their browser of choice.
  • One server machine runs the web server and DW code.
  • Each browser then contacts the web server and sends requests.
  • The web server access the files on the users' behalf and returns the HTML page to the users' browsers.

For example, my home system has multiple machines running various OSs (Linux, Windows n, iOS and Android). with multiple browsers: Firefox, Chrome, Internet Explorer and Edge.  All of these machines can contact http:192.168.1.250/dokuwiki, just as for any other web product.  Only apache:apache actually accesses the files, all locking is handled by Andi's fine code.

HTH.
Avatar
albet10 #3
Member for a month · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: multiple contacts on webserver
Hi,

I read the topic with interest as I am trying to set up a DW on a NAS to be accessible by friends from time to time.
What do you mean only
apache:apache
can edit the pages?
I admit I am a real newbie with DW :-)
---
this signature is a test
---
Avatar
schplurtz (Moderator) #4
Member since Nov 2009 · 505 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
Hi,

As a a web application, DW is actually run by (or accessed through) a webserver application. For security reasons, webservers are launched under a dedicated system account whose name vary from OS to OS. In this case,  MartinR runs a unix like system, where the system account for web apps is named apache and that system account belongs to the apache group. On unix systems it is common to refer to user and group in this way : user:group. Only the apache:apache system account needs to access the files. Even if you have hundreds of DokuWiki users because hese DokuWiki users are not system accounts, they only exist in DokuWiki
This post was edited on 2019-12-27, 07:48 by schplurtz.
Avatar
MartinR #5
Member since Jul 2015 · 168 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
Quite correct, I'm running CentOS.  Sorry if the OP is still on Windows, it's too easy to assume that all servers are Linux.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-01-19, 22:37:41 (UTC +01:00)