Debian Bug report logs - #611254
dokuwiki: does not enable fastcgi with lighttpd

version graph

Package: dokuwiki; Maintainer for dokuwiki is Debian DokuWiki Team <team+dokuwiki@tracker.debian.org>; Source for dokuwiki is src:dokuwiki (PTS, buildd, popcon).

Reported by: Jerome Reybert <jreybert@gmail.com>

Date: Thu, 27 Jan 2011 11:36:01 UTC

Severity: important

Tags: patch, wontfix

Found in version dokuwiki/0.0.20101107-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Tanguy Ortolo <tanguy+debian@ortolo.eu>:
Bug#611254; Package dokuwiki. (Thu, 27 Jan 2011 11:36:04 GMT) (full text, mbox, link).


Acknowledgement sent to Jerome Reybert <jreybert@gmail.com>:
New Bug report received and forwarded. Copy sent to Tanguy Ortolo <tanguy+debian@ortolo.eu>. (Thu, 27 Jan 2011 11:36:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jerome Reybert <jreybert@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dokuwiki: Permission access issue with lighttpd
Date: Thu, 27 Jan 2011 12:33:20 +0100
Package: dokuwiki
Version: 0.0.20101107-1
Severity: important
Tags: patch

I encountered a permission issue when I tried to access a fresh installed
dokuwiki, configured with lighttpd instead of apache2. I can not access
to the wiki, I got a 403 error.

I finally found a solution: it was because fastcgi and fastcgi-php were
not enabled in lighttpd. You should consider to correct the postinst
script, in order to dokuwiki works out of the box. (I do not know if you 
can enable such modules in a non lighttpd related package).

The installed lighttpd version is 1.4.28-2

You can watch the problem described here: http://forum.dokuwiki.org/post/23046

patch:
--- postinst  2011-01-04 20:30:02.000000000 +0100
+++ postinst.new  2011-01-27 12:23:57.000000000 +0100
@@ -269,7 +269,7 @@
  else
    echo "Installing into... [$dir]" >/dev/stderr
    ln -sf /etc/dokuwiki/lighttpd.conf "$file"
-   lighty-enable-mod dokuwiki
+   lighty-enable-mod dokuwiki fastcgi fastcgi-php
  fi
fi
}

-- 
Jérôme 

-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (990, 'testing'), (800, 'stable'), (700, 'unstable'), (600, 'experimental'), (500, 'testing-proposed-updates'), (500, 'proposed-updates')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dokuwiki depends on:
ii  debconf [debconf-2.0]        1.5.36      Debian configuration management sy
ii  libphp-simplepie             1.2-1       RSS and Atom feed parsing in PHP
ii  php-geshi                    1.0.8.4-1   Generic Syntax Highlighter
ii  php5                         5.3.3-7     server-side, HTML-embedded scripti
ii  ucf                          3.0025+nmu1 Update Configuration File: preserv

Versions of packages dokuwiki recommends:
ii  imagemagick                  8:6.6.0.4-3 image manipulation programs
ii  php5-cli                     5.3.3-7     command-line interpreter for the p

Versions of packages dokuwiki suggests:
pn  libapache2-mod-xsendfile      <none>     (no description available)

-- debconf information:
* dokuwiki/system/configure-webserver: lighttpd
* dokuwiki/system/restart-webserver: true
  dokuwiki/wiki/policy: public
* dokuwiki/system/writeplugins: true
  dokuwiki/wiki/fullname: DokuWiki Administrator
* dokuwiki/wiki/license: cc-by-sa
* dokuwiki/system/documentroot: /doku
* dokuwiki/system/accessible: localhost only
* dokuwiki/wiki/title: chimere wiki
  dokuwiki/system/localnet: 10.0.0.0/24
  dokuwiki/wiki/superuser: admin
  dokuwiki/wiki/email: webmaster@localhost
  dokuwiki/wiki/failpass:
* dokuwiki/wiki/acl: true
* dokuwiki/system/writeconf: true
* dokuwiki/system/purgepages: false




Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#611254; Package dokuwiki. (Thu, 27 Jan 2011 11:57:03 GMT) (full text, mbox, link).


Acknowledgement sent to Tanguy Ortolo <tanguy+debian@ortolo.eu>:
Extra info received and forwarded to list. (Thu, 27 Jan 2011 11:57:03 GMT) (full text, mbox, link).


Message #10 received at 611254@bugs.debian.org (full text, mbox, reply):

From: Tanguy Ortolo <tanguy+debian@ortolo.eu>
To: Jerome Reybert <jreybert@gmail.com>, 611254@bugs.debian.org
Subject: Re: Bug#611254: dokuwiki: Permission access issue with lighttpd
Date: Thu, 27 Jan 2011 12:54:45 +0100
[Message part 1 (text/plain, inline)]
Le jeudi 27 janvier 2011, Jerome Reybert a écrit :
> I encountered a permission issue when I tried to access a fresh installed
> dokuwiki, configured with lighttpd instead of apache2. I can not access
> to the wiki, I got a 403 error.
> 
> I finally found a solution: it was because fastcgi and fastcgi-php were
> not enabled in lighttpd. You should consider to correct the postinst
> script, in order to dokuwiki works out of the box. (I do not know if you 
> can enable such modules in a non lighttpd related package).
 
I think I cannot. There may be several ways of running PHP, and if
installing the appropriate module package for a given web server does
not enable it, I do not think I should do it instead in my package.

To rephrase it, if installing lighttpd and php5-cgi does not enable the
required modules, I will not mix up with it to enable them as it could
cause too much problems, so it will be the responsability of the user.

The default dependency resolutions installs apache2-mod-php5, that
enables itself, and everything works. If you want to use an alternative
server instead, as there is no package that enables everything needed,
you will just get the correct packages installed by dependency and have
to put the pieces together by hand.

However, what I can do is to document that in the README.Debian,
explaining that, outside of the default installation, enabling the
correct modules is the responsibility of the user.

I am open to better solutions, if you can suggest one. :-)

-- 
 ,--.
: /` )   Tanguy Ortolo <xmpp:tanguy@ortolo.eu> <irc://irc.oftc.net/Elessar>
| `-'    Debian Maintainer
 \_
[signature.asc (application/pgp-signature, inline)]

Changed Bug title to 'dokuwiki: does not enable fastcgi with lighttpd' from 'dokuwiki: Permission access issue with lighttpd' Request was from tanguy@ortolo.eu (Tanguy Ortolo) to control@bugs.debian.org. (Wed, 23 Feb 2011 13:30:03 GMT) (full text, mbox, link).


Added tag(s) wontfix. Request was from Tanguy Ortolo <tanguy+debian@ortolo.eu> to control@bugs.debian.org. (Sun, 08 May 2011 20:30:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#611254; Package dokuwiki. (Sun, 08 May 2011 20:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to Tanguy Ortolo <tanguy+debian@ortolo.eu>:
Extra info received and forwarded to list. (Sun, 08 May 2011 20:39:03 GMT) (full text, mbox, link).


Message #19 received at 611254@bugs.debian.org (full text, mbox, reply):

From: Tanguy Ortolo <tanguy+debian@ortolo.eu>
To: Jerome Reybert <jreybert@gmail.com>, 611254@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#611254: dokuwiki: Permission access issue with lighttpd
Date: Sun, 8 May 2011 22:27:45 +0200
[Message part 1 (text/plain, inline)]
tag 611254 + wontfix
thanks

Tanguy Ortolo, 2011-01-27 12:54 UTC+0100:
> I think I cannot. There may be several ways of running PHP, and if
> installing the appropriate module package for a given web server does
> not enable it, I do not think I should do it instead in my package.
> 
> To rephrase it, if installing lighttpd and php5-cgi does not enable the
> required modules, I will not mix up with it to enable them as it could
> cause too much problems, so it will be the responsability of the user.

Because of that, I am tagging this bug as wontfix. I am still open to
any discussion or possible solution, of course.

Librement,

-- 
 ,--.
: /` )   Tanguy Ortolo <xmpp:tanguy@ortolo.eu> <irc://irc.oftc.net/Elessar>
| `-'    Debian Maintainer
 \_
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 14 07:04:58 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.