[pkg-lighttpd] Bug#526098: lighttpd init Script is broken
Patrick Erdmann
p.erdmann at hr4you.de
Wed Apr 29 08:12:53 UTC 2009
Package: lighttpd
Version: 1.4.19-5
Output from reportbug:
Warning: no reportbug configuration found. Proceeding in novice mode.
Detected character set: UTF-8
Please change your locale if this is incorrect.
Using 'hr4you at brigitte.4hr.de' as your from address.
Getting status for lighttpd...
Will send report to Debian (per lsb_release).
Maintainer for lighttpd is 'Debian lighttpd maintainers
<pkg-lighttpd-maintainers at lists.alioth.debian.org>'.
Looking up dependencies of lighttpd...
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: hr4you at brigitte.4hr.de
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: none
X-Debbugs-Cc: none
Package: lighttpd
Version: 1.4.19-5
Severity: normal
-- System Information:
Debian Release: 5.0.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages lighttpd depends on:
ii libattr1 1:2.4.43-2 Extended attribute shared
library
ii libbz2-1.0 1.0.5-1 high-quality block-sorting
file co
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libfam0 2.7.0-13.3 Client library to control
the FAM
ii libldap-2.4-2 2.4.11-1 OpenLDAP libraries
ii libpcre3 7.6-2.1 Perl 5 Compatible Regular
Expressi
ii libssl0.9.8 0.9.8g-15+lenny1 SSL shared libraries
ii libterm-readline-perl- 1.0302-1 Perl implementation of
Readline li
ii lsb-base 3.2-20 Linux Standard Base 3.2
init scrip
ii mime-support 3.44-1 MIME files 'mime.types' &
'mailcap
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
lighttpd recommends no packages.
Versions of packages lighttpd suggests:
pn apache2-utils <none> (no description available)
ii openssl 0.9.8g-15+lenny1 Secure Socket Layer (SSL)
binary a
pn rrdtool <none> (no description available)
-- no debconf information
The "include_shell" does not work in lighttpd.conf.
It seems that $SHELL is missing in the init script.
without SHELL:
brigitte ~ # lighttpd -f /etc/lighttpd/lighttpd.conf -p
config {
var.PID = 6161
var.CWD = "/root"
server.modules = (
"mod_indexfile",
"mod_access",
"mod_rewrite",
"mod_fastcgi",
"mod_accesslog",
"mod_alias",
"mod_redirect",
"mod_cgi",
"mod_auth",
"mod_dirlisting",
"mod_staticfile",
# 11
)
server.document-root = "/var/www/"
server.upload-dirs = ("/var/cache/lighttpd/uploads")
server.errorlog = "/var/log/lighttpd/error.log"
index-file.names = ("index.php", "index.html",
"index.htm", "default.htm", "index.lighttpd.html")
accesslog.filename = "/var/log/lighttpd/access.log"
url.access-deny = ("~", ".inc")
static-file.exclude-extensions = (".php", ".pl", ".fcgi")
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ("text/plain", "text/html",
"application/x-javascript", "text/css")
$HTTP["remoteip"] =~ "127.0.0.1" {
# block 1
alias.url = (brigitte ~ # SHELL=/bin/bash; lighttpd -f
/etc/lighttpd/lighttpd.conf -p
"/doc/" => "/usr/share/doc/",
"/images/" => "/usr/share/images/",
# 2
)
$HTTP["url"] =~ "^/doc/|^/images/" {
# block 2
dir-listing.activate = "enable"
} # end of $HTTP["url"] =~ "^/doc/|^/images/"
} # end of $HTTP["remoteip"] =~ "127.0.0.1"
}
With Shell:
brigitte ~ # SHELL=/bin/bash; lighttpd -f /etc/lighttpd/lighttpd.conf -p
it works, the Output is too long now...
I changed some things into the init Script and added SHELL=/bin/bash and
it seems to work.
--
--
Mit freundlichen Grüßen / Best Regards
Patrick Erdmann
eDevelopment
HR4YOU GmbH
An der Seefahrtschule 8
D-26629 Großefehn / Timmel
Tel.: +49-4945-91590-20
Fax: +49-4945-91590-29
E-Mail: p.erdmann at hr4you.de
Internet: http://www.hr4you.de
Geschäftsführer:
Axel Rekemeyer,
Ute Rekemeyer
HRB 1235, Registergericht Aurich
Hotline: +49-4945-91590-22
E-Mail: support at hr4you.de
More information about the pkg-lighttpd-maintainers
mailing list