Not logged in. · Lost password · Register
Forum: General Help and Support Server Setup RSS
Debian 9 install working but errors in apache2 log
Avatar
peter.s #1
Member since Jan 2018 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Debian 9 install working but errors in apache2 log
Hi,

I switched from Ubuntu 16.04 to Debian 9 and I migrated my existing Dokuwiki instance.
Since Debian 9 does not include dokuwiki package I have to install the latest stable (2017-02-19e) release manually in /opt/dokuwiki and I copied the existing data too. This is a closed wiki with authenticated users (authsplit with authhttp). Everything is working (including login, accessing/editing old content, extension manager) but I see strange error messages in apache2 logs:

[Wed Jan 03 11:23:23.937505 2018] [:error] [pid 18825] [client 192.168.0.100:62378] returning peter, referer: https://zone.homelinux.org/dokuwiki/doku.php
[Wed Jan 03 11:23:23.937510 2018] [:error] [pid 18825] [client 192.168.0.100:62378] ---, referer: https://zone.homelinux.org/dokuwiki/doku.php

Here is the /etc/apache2/conf-available/dokuwiki.conf I use (rewriting is not enabled):

AliasMatch ^/dokuwiki/sites/[^/]+$      /opt/dokuwiki/
AliasMatch ^/dokuwiki/sites/[^/]+/(.*)$ /opt/dokuwiki/$1
Alias      /dokuwiki                    /opt/dokuwiki/

<Directory /opt/dokuwiki/>
Options +FollowSymLinks
AllowOverride All
order allow,deny
        Allow from all

        <IfModule mod_rewrite.c>

                # Uncomment to implement server-side URL rewriting
                # (cf. <http://www.dokuwiki.org/config:userewrite>).
                        # Do *not* mix that with multisite!
                #RewriteEngine on
                #RewriteBase /dokuwiki
                #RewriteRule ^lib                      - [L]
                #RewriteRule ^doku.php                 - [L]
                #RewriteRule ^feed.php                 - [L]
                #RewriteRule ^_media/(.*)              lib/exe/fetch.php?media=$1  [QSA,L]
                #RewriteRule ^_detail/(.*)             lib/exe/detail.php?media=$1 [QSA,L]
                #RewriteRule ^_export/([^/]+)/(.*)     doku.php?do=export_$1&id=$2 [QSA,L]
                #RewriteRule ^$                        doku.php  [L]
                #RewriteRule (.*)                      doku.php?id=$1  [QSA,L]
        </IfModule>
</Directory>

<Directory /opt/dokuwiki/bin>
        Require all denied
</Directory>

<Directory /opt/dokuwiki/data>
        Require all denied
</Directory>

Any clue on this? I would appreciate any help.
Thanks,

Peter
Avatar
SFITCS #2
User title: Scott Ferguson
Member since Dec 2014 · 464 posts · Location: Canberra, Australia
Group memberships: Members
Show profile · Link to this post
Debian 9 does not include DokuWiki in the main repositories - however you can use the packages from Unstable or Testing without issues. https://packages.debian.org/buster/all/dokuwiki/download

If you want to setup your DokuWiki the Debian way here is the virtualhost.conf
<VirtualHost *:80>
    ServerName  wiki.example.com
    DocumentRoot /usr/share/dokuwiki

    # Opération #DENY3M
    Include     /etc/apache2/deny3m/deny3m.conf

    RewriteEngine on

    # Gérer les anciens chemins en /dokuwiki
    RewriteRule ^/dokuwiki/(.*)         /$1 [R,L]

    RewriteRule ^/lib                   - [L]
    RewriteRule ^/doku.php              - [L]
    RewriteRule ^/feed.php              - [L]
    RewriteRule ^/_media/(.*)           /lib/exe/fetch.php?media=$1   [PT,QSA,L]
    RewriteRule ^/_detail/(.*)          /lib/exe/detail.php?media=$1  [PT,QSA,L]
    RewriteRule ^/_export/([^/]+)/(.*)  /doku.php?do=export_$1&id=$2  [PT,QSA,L]
    RewriteRule ^/$                     /doku.php  [L]
    RewriteRule ^/(.*)                  /doku.php?id=$1  [QSA,L]
</VirtualHost>
Avatar
peter.s #3
Member since Jan 2018 · 2 posts
Group memberships: Members
Show profile · Link to this post
Thanks for the suggestion. I installed the dokuwiki package from Testing and with my config it produced the same error message.
After a longer investigation it turned out that authhttp plugin contained some debug messages (plugin's owner confirmed that and fixed the plugin). So there is no problem with my original configuration and after updating this plugin the error messages disappeared.
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-02-17, 23:34:02 (UTC +01:00)