various installation problems

Bug #1611445 reported by Mark Thompson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dokuwiki (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description: Ubuntu 16.04.1 LTS
Release: 16.04
dokuwiki:
  Installed: 0.0.20140929.d-1ubuntu1
  Candidate: 0.0.20140929.d-1ubuntu1

Installation of Dokuwiki still has various problems.

Updates related to previous reports:
1) An Apache conf symlink seems now to be created: /etc/apache2/conf-enabled/dokuwiki.conf -> ../conf-available/dokuwiki.conf
2) Dokuwiki package does not seem to include dependencies libapache2-mod-php7.0 and php7.0-xml (as required by Dokuwiki developers: https://www.dokuwiki.org/install:ubuntu)

In addition:
3) The provided apache.conf defaults to localhost accessibility only (atypical scenario for a wiki?)
4) Dokuwiki needs /usr/share/dokuwiki/data to be writable: the data directory is actually in /var/lib/dokuwiki
5) Dokuwiki needs write permissions for /var/lib/dokuwiki/data/ and /var/lib/dokuwiki/acl/ directories
6) Additional permissions are required to run configuration/installation script install.php or to save changes in web configuration interface: Admin -> Configuration settings

I found solutions for 3-6, but any feedback on the security of these solutions would be much appreciated:
3') In /etc/dokuwiki/apache.conf change:
    Allow from localhost 127.0.0.1 ::1
      to:
    Allow from All
4') Make softlink /usr/share/dokuwiki/data -> /var/lib/dokuwiki/data/
5') Change owner of /var/lib/dokuwiki/data/ and /var/lib/dokuwiki/acl/ to "www-data", group "root"
6') Make softlink /usr/share/dokuwiki/conf -> /etc/dokuwiki and change owner of /etc/dokuwiki/local.php to "www-data", group "root"

Finally, warnings remain in /var/log/apache2/error.log:
PHP Warning: Declaration of action_plugin_authad::register(Doku_Event_Handler &$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/lib/dokuwiki/lib/plugins/authad/action.php on line 0, referer: [removed by poster]

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dokuwiki (Ubuntu):
status: New → Confirmed
Revision history for this message
Uwe Wahser (uwe-wahser) wrote :

Just found this under: https://www.dokuwiki.org/install:debian_ubuntu_extras

It seems to work (didn't check beyond start page, yet) with the following steps:
1) sudo apt-get install dokuwiki
2) sudo apt-get install libapache2-mod-php7.0 php7.0-xml
3) sudo dpkg-reconfigure dokuwiki

However, all this should actually all be done in the first step.

Revision history for this message
GeekSmith (lixo-geeksmith) wrote :

https://wiki.debian.org/DokuWiki points out that dokuwiki is "initially configured by the package manager, not by the install web page" -- that at least explains #6.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.