Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
Running DokuWiki-On-A-Stick On NAS Via Network Drive
Avatar
CLTidball #1
Member for a week · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Running DokuWiki-On-A-Stick On NAS Via Network Drive
Howdy all!

New to the forum, new to DokuWiki, not-new to wiki's in general person here.  I'm being confounded by my setup, and am hoping you all can help me!

I downloaded the Doku-On-A-Stick, with all the extras (MApache, all the plugins available, etc.), and unzipped it to my desktop (Win10).  I ran it from there, and it installed and setup perfectly. 

I then moved it to my NAS, via a mapped network drive in Windows Explorer.  When I try to run the run.cmd from there (the network drive), I either get the CMD box and no browser tab or the CMD box and a browser tab with the "DokuWiki Setup Error: The datadir ('pages') at ./data/pages is not found, isn't accessible or writable." error or  When I click on the "run the installer link", it comes right back to the same setup error page.  When I click the "run the installer" link, it comes right back to that page.

Now, I really would rather not have to have anything on the local machine, and would prefer have everything running off the NAS, via the Doku-On-A-Stick (aka, portable) install.  What am I missing with how I'm running this?  Did I mess up by running the install/setup on my desktop first?  Am I missing something with how it's talking to itself on the mapped network drive?  Is how I want this done even possible?

Thanks so much for reading, and hopefully providing any help!
-CLT
Avatar
andi (Administrator) #2
User title: splitbrain
Member since May 2006 · 3471 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This has been discussed before in the forum. Do not run the on-a-stick release on a network drive. That is not what it is made for and it's completely silly. Run a webserver on you NAS and let that serve DokuWiki.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
CLTidball #3
Member for a week · 2 posts
Group memberships: Members
Show profile · Link to this post
Quote by andi:
This has been discussed before in the forum. Do not run the on-a-stick release on a network drive. That is not what it is made for and it's completely silly. Run a webserver on you NAS and let that serve DokuWiki.
Could you provide links to the previous discussions, please, so I can understand the why's behind why it's considered 'silly'?

For what it's worth, I'd love to run the on-a-stick release on the network drive because of how my digital files are organized, and how I understand DokuWiki to work.  I'd essentially have two copies of DokuWiki, one for each Wiki that I want to make (no, I don't want one wiki to rule them all; I need seperate wikis).  If my NAS's (Synology) DokuWiki package can handle multiple wiki's in different locations on the NAS, that's a whole different ball-game, and one that I can't see how to set-up, given that DokuWiki keeps the wiki files in it's 'pages' data directory.

Edit to add: ahhh, looks like "Farms" may be what I'm looking for. Will delve into that and see what happens, too.
Avatar
virk #4
Member since Aug 2008 · 615 posts · Location: Aachen, Germany
Group memberships: Members
Show profile · Link to this post
Quote by CLTidball:
For what it's worth, I'd love to run the on-a-stick release on the network drive because of how my digital files are organized, and how I understand DokuWiki to work.  I'd essentially have two copies of DokuWiki, one for each Wiki that I want to make (no, I don't want one wiki to rule them all; I need seperate wikis).  If my NAS's (Synology) DokuWiki package can handle multiple wiki's in different locations on the NAS, that's a whole different ball-game, and one that I can't see how to set-up, given that DokuWiki keeps the wiki files in it's 'pages' data directory.

Edit to add: ahhh, looks like "Farms" may be what I'm looking for. Will delve into that and see what happens, too.

I do not know the Synology, but I think different dokuwiki will not be a problem at all: One you point to in the browser with ......./dokuwiki1/... another one with ....../dokuwiki2/...... and a further one with ......./CLTidball/......You need to tell the webserver once where the directory is the webserver needs to serve from.

What I know about "farming" of dokuwiki is, that it gives the advantage, that you can manage several dokuwikis with independent content, but all with similar structure (Version, plugins, templates, etc.)
Avatar
pop #5
Member since Nov 2016 · 169 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #3
Quote by CLTidball:
... If my NAS's (Synology) DokuWiki package can handle multiple wiki's in different locations on the NAS, that's a whole different ball-game, and one that I can't see how to set-up, given that DokuWiki keeps the wiki files in it's 'pages' data directory.

Edit to add: ahhh, looks like "Farms" may be what I'm looking for. Will delve into that and see what happens, too.

I have two Synology servers, one with a farm and the other with two independent Dokuwiki instances. For an independent Dokuwiki, make a new directory in /web - say /web/indep. Then download and install Dokuwiki in this new directory. Use the second wiki with the server address http://192.168.1.70/indep (if the NAS has the IP address 192.168.1.70).
Avatar
andi (Administrator) #6
User title: splitbrain
Member since May 2006 · 3471 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #3
Quote by CLTidball:
Quote by andi:
This has been discussed before in the forum. Do not run the on-a-stick release on a network drive. That is not what it is made for and it's completely silly. Run a webserver on you NAS and let that serve DokuWiki.
Could you provide links to the previous discussions, please, so I can understand the why's behind why it's considered 'silly'?

Sorry the thread I remembered was in German: https://forum.dokuwiki.org/thread/16320 So let me explain it in English again for future reference.

First of all let's start with some background knowledge. DokuWiki is a web application written in the PHP scripting language. This means it needs two things: a PHP interpreter (to run the PHP scripts) and a web server (to serve files like images as well as the HTML produced by the PHP scripts via the HTTP network protocol).

The traditional setup is to run mod_php (the PHP interpreter) and Apache (the webserver) to run DokuWiki (there are other combinations of interpreter and webserver setups). Both of these are machine dependent, compiled software (like exe and dll files on a Windows system).

Now the nice thing about a web application is that you set the interpreter/webserver once on a server and then you can access it via HTTP in your browser from everywhere.

For a wiki on the Internet, you usually don't setup the webserver and interpreter yourself. These things are provided by your hoster. But when you want to run DokuWiki on your own hardware you need to do it yourself.

This is where DokuWiki on a stick comes in. The download comes with a webserver and PHP preinstalled for Windows and everything is preconfigured to just run. There's an actual apache.exe file that gets executed, starts the webserver (and mod_php) and runs both on your localhost.

So for a web site on a hoster or when running DokuWiki on a stick from your local computer it looks like this:
[Image: https://i.imgur.com/TNhsThd.png]

So far for the background on DokuWiki and the on-a-stick version.

Now when you want to put the on-a-stick version on a network drive and expect all your users to start the apache.exe to access the same wiki, you're actually using a network protocol for file access to exceute a copy of the webserver and PHP interpreter on each of your user's computers.

Basically you're doing this:

[Image: https://i.imgur.com/3yM8FYu.png]


Not only is that silly from a resource usage view, it will probably have all kinds of weird side effects.

DokuWiki expects to run in a server with a local file system. But when you run the webserver on the client machine (which is what you do when you start it from the network drive - it runs in the client machine's RAM) this is no longer the case. The files are still accessed via the file protocol at the network drive.

So summarize: DokuWiki on-a-stick is for personal use only. It is meant to be run locally for a single user.

You can turn DokuWiki on-a-stick into a multi-user setup, but the access protocol for that has to be HTTP. That means running the webserver and PHP in a permanent fashion on a central server. If that server is not Windows based, you can not use the server included in the on-a-stick version. If it is based on windows you could reconfigure the included Apache, but you're probably better of doing a proper installation.

I hope this clears up things.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
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: 2019-08-19, 16:26:29 (UTC +02:00)