Not logged in. · Lost password · Register
Page:  1  2  3 ... 31  32  33  next 

All posts by schplurtz (494)

topic: Configuring Dokuwiki basedir with Linux and Nginx  in the forum: General Help and Support Server Setup
Avatar
schplurtz (Moderator) #1
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
Hi,

• you don't run DokuWiki as a systemd service. DokuWiki is a PHP application and PHP applications don't run as service. PHP applications rely on the webserver to launch various PHP scripts on demand; for each HTTP request. In your case, you have to set up a php-fpm service -- whose job is to actually interpret the PHP scripts -- and configure nginx to pass requests to that php-fpm service. To install php-fpm, refer to your particular distro documentation, but this is usually as simple as installing the php-fpm package. Once done, see https://www.dokuwiki.org/install:nginx to setup nginx. The example is given for dokuwiki at the root of a website. So, you have to change "location /" to "location /wiki", "location /lib" to "location /wiki/lib", "rewrite ^/_media" to "rewrite ^/wiki/_media" and so on...

• Once done, run the installer. (it will be https://order.life/wiki/install.php).  see https://www.dokuwiki.org/installer , this will create the required minimum settings. Among other things, it will create conf/local.php

• Never edit conf/dokuwiki.php, but override default settings in conf/local.php . See https://www.dokuwiki.org/config

• Usually, there is nothing to configure in DokuWiki to tell it it is located at /something. DW autodetects its own URL. If it does not work properly (images not shown for example), then set basedir in conf/local.php. It might help. See https://www.dokuwiki.org/config:basedir

You might also want to read the whole install documentation. https://www.dokuwiki.org/install.
topic: No php support  in the forum: General Help and Support Installation and Configuration
Avatar
schplurtz (Moderator) #2
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67839
Je viens de comprendre  qu'il y avait un forum "french discussion". Merci de me répondre malgré tout :-)
Vraiment ?.

Mon fichier "user.auth.acl" avait disparu
Il n'y a pas de fichier "user.auth.acl". Il y a "conf/users.auth.php" et "conf/acl.auth.php". Créer un fichier "user.auth.acl" ne peut pas avoir d'effet.

en mode navigation privée, tout va bien
avec Brave
L'accès semble correct également
Au final, donc, ça fonctionne. Tant mieux. On ne comprend pas bien ce qui ne fonctionne pas mais c'est juste un soucis avec ton navigateur. DW fonctionne bien.
topic: No php support  in the forum: General Help and Support Installation and Configuration
Avatar
schplurtz (Moderator) #3
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67817
Bonjur Domirock.

Je suis sous xubuntu. Les MAJ sont faites régulièrement
C'est déjà mieux que robocop, lui tourne sous MS DOS.

Normalement, ici on parle anglais. enfin bon.

est-ce que c'est un dokuwiki installé en paquet Debian ?

Pour savoir ce qu'est NoScript, tu peux demander à un moteur de recherche.
Est-ce qu'avec un navigateur sans aucune extension ça fonctionne ?
topic: Sharing login credentials between Pleroma and Dokuwiki  in the forum: General Help and Support Server Setup
Avatar
schplurtz (Moderator) #4
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67801
Hi,
they use postgresql. Try DW authpdo.
topic: Lighttpd + Dokuwiki - Won't start, include file not found  in the forum: General Help and Support Installation and Configuration
Avatar
schplurtz (Moderator) #5
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67734
hum I did not read your post with the attention it needed. Sorry. Is the file readeable by lighttp ?
topic: Lighttpd + Dokuwiki - Won't start, include file not found  in the forum: General Help and Support Installation and Configuration
Avatar
schplurtz (Moderator) #6
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67733
I absolutely don't know lighttpd.
2019-11-09 04:07:15: (configfile.c.1232) include file not found:  conf-enabled/10-cgi.conf
The file is not found. I see 2 possibilities :

1) The file conf-enabled/10-cgi.conf is a symlink that points to a non existent file. Where is this conf-enabled directory ? I guess somewhere between /etc/lighttpd , /usr/share/lighttpd/ , and the current directory. Maybe you are missing a module or lighttpd-foobar package. Maybe this is the remnants of a previous installation that you don't remember clearly... Maybe you should just remove this dangling symlink.

2) You have to change directory before you run your start command so that the conf-enabled/10-cgi.conf can be found ; but I doubt that.
topic: [Solved] Defining Interwiki links in farm-animal wiki site using subdomains  in the forum: General Help and Support Syntax and Usage
Avatar
schplurtz (Moderator) #7
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67707
If I understand you well, users at your sites will use external link syntax to point to internal page ? Well if you can't educate your users, you can still write an action plugin that catches the IO_WIKIPAGE_WRITE event. In your handler, you have access to the page wiki text, and you have the possibility to change that text before it is written. See https://www.dokuwiki.org/devel:event:io_wikipage_write. A global search and replace could change external links that point to an internal page into a real internal link.


Now the second problem: make external links that match *.myfunkywikis.com internal links. I think you can write your own renderer plugin to extend the Doku_Renderer_xhtml class.

See the documentation on renderer.

In your class, I think you only have to redefine 2 functions : interwikilink and externallink.

In the function externallink(), if the link matches *.myfunkywikis.com, render it as an internal link. The same for interwikilink().


The plugin wizard will create the plugin structure for you. https://pluginwiz.dokuwiki.org/
topic: Changer username on 'old revisions'  in the forum: General Help and Support General Stuff
Avatar
schplurtz (Moderator) #8
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67717
these are the "minor change" revisions.
topic: Changer username on 'old revisions'  in the forum: General Help and Support General Stuff
Avatar
schplurtz (Moderator) #9
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67697
That's possible. For any page foo, there is a corresponding file data/meta/foo.changes that holds the history of that page.
The .changes files are  TSV  files where the username is the 5th field.

There may exist some other way I'm not aware of, but since your DW is running on Debian, you could type that kind of commands in a terminal. Warning, it's completely untested. You should backup your entire system and make sure you can actually restore the backup before you try this. Don't blindly type the commands, adapt to your situation, check for errors at each step.

sudo systemctl stop apache2
sudo su -s /bin/bash - www-data
oldusername=schplurtz
newusername=ztrulphcs
cd /var/www/html/dokuwiki/data/meta
for ch in $(find . -name '*.changes'); do
  touch -r "$ch" reference.timestamp
  sed -i -e $'s/^\\([^\t]*\t[^\t]*\t[^\t]*\t[^\t]*\t\\)'"$oldusername"$'\\(.*\\)/\\1'"$newusername"'\2/' "$ch"
  touch -r reference.timestamp "$ch"
done
rm reference.timestamp
exit
sudo systemctl start apache2
topic: Data directory post is not properly secured  in the forum: General Help and Support Installation and Configuration
Avatar
schplurtz (Moderator) #10
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67667
I renamed '.htaccess.dist' to '.htaccess'.
I understand. That's OK, but probably useless too, unfortunately.
topic: Namespace as page  in the forum: General Help and Support Syntax and Usage
Avatar
schplurtz (Moderator) #11
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67668
Quote by elfworld:
I think I got the hang of it now. See the image I included here. Every namespace is now clickable, and I've managed to create a nice tree structure.
Glad you made it !

Quote by elfworld:
1) I see you have some nice icons in your sitemap, are those in the template you've chosen?
These are the default Javascript icon used by the indexmenu plugin. If you want them, edit :indexpage and replace
{{indexmenu>..| navbar nocookie id#random}}
with
{{indexmenu>..| js navbar nocookie id#random}}
indexmenu has other icons. When you have time, read https://www.dokuwiki.org/plugin:indexmenu

Quote by elfworld:
2) AT http://truc.schplurtz.onmypc.org/start, you've managed to get the sitemap on the start page? How do I do that? The start page of my wiki is :start and the sitemap document is called :indexpage
I simply also added the indexmenu sitemap syntax in the main page. Take a look at the page source.

Quote by elfworld:
PS! Tried to register a user at your site, but never received the confirmation email.
I've been suspecting that laposte.net (or my strange name) is blocked by some mailhosters.
Sorry. This is another piece of evidence. (well, it could also be due to your antispam or your mailserver's )
Anyhow, your account is ready, try to log in. use your username as password. though I'm not
sure this is still useful.
topic: Data directory post is not properly secured  in the forum: General Help and Support Installation and Configuration
Avatar
schplurtz (Moderator) #12
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67657
Hi,
Which htaccess files did you rename ?
For your security problem, there is a default .htaccess file in the data folder.
Do not modify this file, it is perfectly fine.

Now, if this .htaccess is ignored by the webserver, it obviously can't protect your site
and you have to find other ways. This unfortunate situation is dokumented.
See https://www.dokuwiki.org/security#rename_data_directory

1) For example, with FTP rename data to irohgh7Iedae6joht0ahl6
2) with FTP (because at this time DW is broken) edit conf/local.php,
    add the setting :
    $conf['savedir']     = './irohgh7Iedae6joht0ahl6';
topic: Namespace as page  in the forum: General Help and Support Syntax and Usage
Avatar
schplurtz (Moderator) #13
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67655
There is one drawback I did not anticipate. If you wan to create child page by "linking, following the link, creating", you have to use a somewhat weird syntax ".:current_page:childpage". Take a look at my rule of thirds page.

Register a user if you want to edit. Site will be gone in a few days.
This post was edited on 2019-11-03, 17:12 by schplurtz.
topic: Namespace as page  in the forum: General Help and Support Syntax and Usage
Avatar
schplurtz (Moderator) #14
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67653
I can't seem to quite get the hang of the syntax
I can understand. I mixed several solutions. (:parent, :parent:start and :parent:parent). I just reset everything to the most natural way of doing things.

First of all, create only one page named start that will be the home page of your site. :start. Never again shall you use a page named "start".
Then create a "parent" page :parent
And whenever you need, create child pages :parent:child1 :parent:child2 etc... DokuWiki automagically creates the namespace :parent.

You can think of this as : "a page becomes a namespace when needed (but still exists as a page)"
under the hood, there is a page ":parent" and a namespace ":parent:", and a page ":parent:child1"

This is exactly what I suggested in my first answer... But, unfortunately, vanilla DokuWiki does not "merge" pages and namespaces that have the same name in sitemap. So you end up with a non clickable namespace, and, a few lines below, a page with the same name. In order to "merge" pages and namespaces that have the same name, you have to add the indexmenu plugin. Thank you @virk !

Once the indexmenu plugin is installed, create a page named :indexpage. Indexmenu recommends that this page contain this :
{{indexmenu>..| navbar nocookie id#random}}
Or, if you prefer the javascript version
{{indexmenu>..| js navbar nocookie id#random}}

Then go to admin page, config settings.
In the display group, set  hidepages to ^:indexpage|sidebar|.*:sidebar
In the indexmenu plugin group set page_index   to   :indexpage

You're done.

When someone clicks on the sitemap link, (s)he gets the :indexpage instead of the default DokuWiki generated sitemap page.
topic: Namespace as page  in the forum: General Help and Support Syntax and Usage
Avatar
schplurtz (Moderator) #15
Member since Nov 2009 · 497 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 67647
Hi,

Do you want something like this ?
Close Smaller – Larger + Reply to this post:
Special characters:
Page:  1  2  3 ... 31  32  33  next 
Special queries
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-12-08, 04:23:40 (UTC +01:00)