[dokuwiki] Re: Online configuration tip - need assesment

  • From: Chris Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 20 Jan 2006 19:54:41 +0000

Philippe Debar wrote:

Chris Smith a écrit :
Philippe Debar wrote:
I was disappointed of not being able to configure Dokuwiki without ftp
access. Of course, there is the config plugin, which works quite well,
but it can't modify any of the configuration files. So I moved the configuration files to data/pages and changed them to *.txt files to allow in-wiki configuration edition.


Is there a reason you can't modify the config folder permissions so that its writable?
If you can update text files in your data folder there "shouldn't" be any reason why you can't allow dokuwiki to modify its own config files.

I am not sure I understand you correctly, but I realize I was not very clear myself. When I wrote:
> Of course, there is the config plugin, which works quite well,
> but it can't modify any of the configuration files.


I meant "configuration files other than local.php". For this file, it works perfectly.

I don't understand how changing directory permission (ftp chmod) would allow me to edit the conf/* files through the wiki. Could you further explain your simpler solution?

I misunderstood the reason you couldn't edit the files, I now understand what you're after. Your wiki does have write permissions to conf folder - it must if you can use config plugin. You are right that there currently is no provided editor for smileys.conf, interwiki.conf, entities.conf, etc. You shouldn't update these files though ... let me explain.

dokuwiki.php - default settings, shouldn't be edited.
local.php - local settings, can be edited, use config plugin (or your system)


acl.auth.php - acl settings, can be edited, use acl plugin (or your system)
users.auth.php - user list, can be edited, use one of user manager plugins (or your system)


for other .conf files, acronyms, smileys, interwiki, entities & mime, you shouldn't modify the default version of the file, but the local version. e.g.

acronyms.conf (default),  acronyms.local.conf (local)
mime.conf (default), mime.local.conf
etc

that way when you update dokuwiki, dokuwiki won't overwrite your changes. That would leave you only needing to modify four file references in /inc/confutils.php from ".conf" to ".txt".

To be honest, I think it would be handy to have a "DOKU_LOCAL" setting separate from "DOKU_CONF". That would allow the local settings files to be placed somewhere other than the .conf folder. I guess acl.auth.php & users.auth.php should count as local files. The last touch would be to have another setting "DOKU_LOCAL_EXT" to leave at default or specify txt.

For mime, smileys & interwiki substitutions there should be a corresponding image in lib/images/*/. Would it work to redirect these requests to data/pages/admin/*/? This would require a "DOKU_LIB_IMAGES" setting too.

Final note, wordblock.conf doesn't allow a local version.  Should it.

Andi, what do you think of making adjustments to settings/code to allow a wiki managed wiki to operate?

Cheers,

Chris

--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: