Page 1 of 1

Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-30 19:22
by oemi1980
Versuche gerade auf meinem Server(Debian Etch) Lighttpd zu installieren und hänge gerade fest.
Wenn ich dieser Anleitung folge: http://www.rootforum.org/wiki/howto/thema/testhowto
und dpkg-buildpackage eingebe, bekomme ich folgende Meldung:

Code: Select all

bla1918:/usr/src# dpkg-buildpackage
dpkg-parsechangelog: error: cannot open debian/changelog to find format: Datei oder Verzeichnis nicht gefunden
dpkg-buildpackage: unable to determine source package is
Hoffe einer kann helfen ...

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-30 20:01
by Roger Wilco
1. `cd /usr/src/lighttpd-1.4.15`
2. Hast du /usr/src/lighttpd-1.4.15/debian/changelog erstellt?

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-30 20:15
by oemi1980
zu 2) Nein leider nicht, weil ich nicht weiss mit welcher tasten kombination ich meinen eintrag abspeichern soll.

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-30 20:31
by sledge0303
STRG+X und anschließend mit 'y' für 'yes' oder 'j' für 'ja' bestätigen. Steht eigentlich unten im Editor drin.

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-30 20:38
by oemi1980
Danke für die Hilfe mache für heute schluss und morgen nach der Arbeit dann weiter.
Hoffe das ich es dann irgendwann einmal schaffen werde...

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 09:05
by oemi1980
Nächstes Problem:

Code: Select all

bla16:/usr/src/lighttpd-1.4.15# dpkg-buildpackage
parsechangelog/debian: error: badly formatted heading line, at file debian/changelog line 3
dpkg-buildpackage: unable to determine source package is
[/code][/quote]
debian/changelog

Code: Select all

lighttpd (1.4.15) unstable; urgency=low

* updated to 1.4.15

-- Mein Name <meineemail@web.de>  Tue, 30.05.2007 08:58 +02.00

lighttpd (1.4.6-1) unstable; urgency=low

  * updated to 1.4.6

 -- Jan Kneschke <jan@kneschke.de>  Sun, 09 Oct 2005 22:48:00 +0200

lighttpd (1.4.5-1) unstable; urgency=low

  * updated to 1.4.5

 -- Jan Kneschke <jan@kneschke.de>  Fri, 30 Sep 2005 10:54:00 +0200

lighttpd (1.4.4-1) unstable; urgency=low

  * updated to 1.4.4

 -- Jan Kneschke <jan@kneschke.de>  Thu, 14 Sep 2005 18:54:00 +0200

lighttpd (1.4.3-1) unstable; urgency=low

  * updated to 1.4.3

 -- Jan Kneschke <jan@kneschke.de>  Thu, 01 Sep 2005 10:41:00 +0200

lighttpd (1.4.2-1) unstable; urgency=low

  * updated to 1.4.2

 -- Jan Kneschke <jan@kneschke.de>  Mon, 29 Aug 2005 12:55:00 +0200

lighttpd (1.4.1-1) unstable; urgency=low

  * updated to 1.4.1

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 09:43
by sledge0303
Schau dir mal den Unterschied an zwischen

dem Eintrag

Code: Select all

-- Jan Kneschke <jan@kneschke.de>  Sun, 09 Oct 2005 22:48:00 +0200
und deinem

Code: Select all

-- Mein Name <meineemail@web.de>  Tue, 30.05.2007 08:58 +02.00

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 11:47
by oemi1980
habe daraus folgendes gemacht:

Code: Select all

lighttpd (1.4.15) unstable; urgency=low

* updated to 1.4.15

-- mein name <meineemail@web.de>  Tue, 30 may 2007 11:41:00 +0200
Bekomme leider wieder die selbe Fehlermeldung!

Ausserdem steht im Howto:

Code: Select all

lighttpd (1.4.15) unstable; urgency=low

* updated to 1.4.15

-- Dein Name <deine@mail>  Tue, 20.05.2007 16:00 +02.00
Quelle: http://www.rootforum.org/wiki/howto/thema/testhowto
-------------------------------------------------------------------------

Weiss sonst noch einer ne Lösung ?

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 12:09
by sledge0303
Aha, hab es ebend gesehen. Offensichtlich ein Formatierungsfehler bei der Erstellung des Beitrags im Wiki. schaue ich mir gleich an.

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 12:35
by sledge0303
sledge0303 wrote:Aha, hab es ebend gesehen. Offensichtlich ein Formatierungsfehler bei der Erstellung des Beitrags im Wiki. schaue ich mir gleich an.
Done. Danke für den Hinweis mit dem Formatierungsfehler.

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 12:54
by oemi1980
so weiter gehts...
2. User für OX anlegen

Man kann den User www-data als User für den Lighttpd nutzen. Ich empfehle immer einen neuen anzulegen. Das kann man so machen:

Code: Select all

adduser --home /var/lighttpd --shell /bin/false 
--no-create-home --system --group lighty
Bekomme dann diese Meldung, ist das ok so ?

Code: Select all

bla16:/usr/src# adduser --home /var/lighttpd --shell /bin/false 
> --no-create-home --system --group lighty
Warnung: Das von Ihnen angegebene Home-Verzeichnis existiert nicht.
Lege Systembenutzer »lighty« (UID 102) an ...
Lege neue Gruppe »lighty« (GID 105) an ...
Lege neuen Benutzer »lighty« (UID 102) mit Gruppe »lighty« an ...
Erstelle Home-Verzeichnis »/var/lighttpd« nicht.

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 13:23
by kase
Das ist alles korrekt, ich vermute, dass /var/lighttpd erst später im Howto angelegt wird.

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 13:23
by sledge0303
'Homeverzeichnis' wird auch erst im nächsten Schritt erstellt. Werde es aber, wenn ich Zeit hab, nochmals vermerken.
Kannst also fortfahren mit der Geschichte.

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 14:38
by oemi1980
/etc/init.d/lighttpd restart

Kommt bei mir folgendes raus:

Restarting lighttpd: 2007-05-31 14:32:09: (mod_auth.c.524) opening auth.backend.htpasswd.userfile: /etc/lighttpd/password/download.pwd failed: No such file or directory
2007-05-31 14:32:09: (server.c.849) Configuration of plugins failed. Going down.

-----------------------------------------------------------------------------

Noch ne Frage zu: 7.1 lighttpd.conf

Nehmen wir mal an meine Domain lautet http://www.hahaha.de (wie orginel:-))

Code: Select all

server.document-root = "/var/www/hahaha.de/htdocs/"
server.name = "www.hahaha.de"
Ist das so richtig ?

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 15:59
by sledge0303
oemi1980 wrote:/etc/init.d/lighttpd restart

Kommt bei mir folgendes raus:

Restarting lighttpd: 2007-05-31 14:32:09: (mod_auth.c.524) opening auth.backend.htpasswd.userfile: /etc/lighttpd/password/download.pwd failed: No such file or directory
2007-05-31 14:32:09: (server.c.849) Configuration of plugins failed. Going down.
Ich schätze mal, der Eintrag in der lighttpd.conf sieht nicht so aus:

Code: Select all

auth.backend.htpasswd.userfile = "/etc/lighttpd/password/download.pwd"
Steht es im Howto so drin? JA!
Warum hast du es anders gemacht als es drin steht?
oemi1980 wrote: -----------------------------------------------------------------------------

Noch ne Frage zu: 7.1 lighttpd.conf

Nehmen wir mal an meine Domain lautet http://www.hahaha.de (wie orginel:-))

Code: Select all

server.document-root = "/var/www/hahaha.de/htdocs/"
server.name = "www.hahaha.de"
Ist das so richtig ?
Wenn nichts anderes im Howto drin steht... JA! :roll:

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 16:36
by oemi1980
Ich schätze mal, der Eintrag in der lighttpd.conf sieht nicht so aus:

Code: Select all

auth.backend.htpasswd.userfile = "/etc/lighttpd/password/download.pwd"
Steht es im Howto so drin? JA!
Warum hast du es anders gemacht als es drin steht?
Bin genau deinen anweisungen gefolgt und habe folgendes eingegeben:

Code: Select all

cat > /etc/lighttpd/lighttpd.conf << "EOF"
server.username = "lighty"
server.groupname = "lighty"
server.document-root = "/var/www/domain/htdocs/"
server.chroot = "/var/lighttpd"
server.pid-file = "/var/run/lighttpd.pid"
server.errorlog = "/var/log/lighttpd/error.log"
accesslog.filename = "/var/log/lighttpd/access.log"
server.stat-cache-engine = "simple"
server.event-handler = "linux-sysepoll"
server.name = "www.meinedomain.de"
server.max-fds = 2048
evasive.max-conns-per-ip = 10
# connection ist bei dieser Config gedrosselt, daher beibehalten, anpassen oder rausschmeissen
connection.kbytes-per-second = 128
server.follow-symlink = "enable"
server.dir-listing = "disable"
server.max-keep-alive-idle = 10
compress.cache-dir = "/tmp/"
compress.filetype = ("text/plain", "text/html")
server.modules = ( 
  "mod_access", 
  "mod_status", 
  "mod_cgi",
  "mod_alias",
  "mod_auth",
  "mod_evasive",
  "mod_fastcgi",
  "mod_compress",
  "mod_accesslog" 
)
server.indexfiles = (
  "index.xhtml",
  "index.html",
  "index.htm",
  "index.php",
)
mimetype.assign = (
 ".pdf"     => "application/pdf",
 ".sig"     => "application/pgp-signature",
 ".spl"     => "application/futuresplash",
 ".class"   => "application/octet-stream",
 ".ps"      => "application/postscript",
 ".torrent" => "application/x-bittorrent",
 ".dvi"     => "application/x-dvi",
 ".pac"     => "application/x-ns-proxy-autoconfig",
 ".swf"     => "application/x-shockwave-flash",
 ".tgz"     => "application/x-tgz",
 ".mp3"     => "audio/mpeg",
 ".m3u"     => "audio/x-mpegurl",
 ".wma"     => "audio/x-ms-wma",
 ".wax"     => "audio/x-ms-wax",
 ".ogg"     => "application/ogg",
 ".wav"     => "audio/x-wav",
 ".xbm"     => "image/x-xbitmap",
 ".xpm"     => "image/x-xpixmap",
 ".xwd"     => "image/x-xwindowdump",
 ".asc"     => "text/plain",
 ".c"       => "text/plain",
 ".h"       => "text/plain",
 ".cc"      => "text/plain",
 ".cpp"     => "text/plain",
 ".hh"      => "text/plain",
 ".hpp"     => "text/plain",
 ".conf"    => "text/plain",
 ".log"     => "text/plain",
 ".text"    => "text/plain",
 ".txt"     => "text/plain",
 ".diff"    => "text/plain",
 ".patch"   => "text/plain",
 ".ebuild"  => "text/plain",
 ".eclass"  => "text/plain",
 ".rtf"     => "application/rtf",
 ".bmp"     => "image/bmp",
 ".tif"     => "image/tiff",
 ".tiff"    => "image/tiff",
 ".ico"     => "image/x-icon",
 ".mpeg"    => "video/mpeg",
 ".mpg"     => "video/mpeg",
 ".mov"     => "video/quicktime",
 ".qt"      => "video/quicktime",
 ".avi"     => "video/x-msvideo",
 ".asf"     => "video/x-ms-asf",
 ".asx"     => "video/x-ms-asf",
 ".wmv"     => "video/x-ms-wmv",
 ".tbz"     => "application/x-bzip-compressed-tar",
 ".tar.bz2" => "application/x-bzip-compressed-tar",
 ".tar.gz"  => "application/x-tgz",
 ".bz2"     => "application/x-bzip",
 ".gz"      => "application/x-gzip",
 ".tar"     => "application/x-tar",
 ".zip"     => "application/zip",
 ".jpeg"    => "image/jpeg",
 ".jpg"     => "image/jpeg",
 ".png"     => "image/png",
 ".gif"     => "image/gif",
 ".xhtml"   => "text/html",
 ".html"    => "text/html",
 ".htm"     => "text/html",
 ".dtd"     => "text/xml",
 ".xml"     => "text/xml",
 ".css"     => "text/css",
 ".js"      => "text/javascript",
 ".deb"     => "application/x-deb",
 ".php"     => "application/x-httpd-php",
 ""         => "text/plain",
)
static-file.exclude-extensions = (
 ".pl",
 ".cgi",
 ".fcgi",
 ".php",
)
url.access-deny = (
 "~",
 ".ini",
 ".inc",
 ".cfg",
 ".tpl",
 ".bak",
 ".dist",
 ".orig",
 ".htaccess",
 ".htpasswd",
 ".example",
 ".sample",
 ".lang",
)
cgi.assign = (
 ".pl"  => "/usr/bin/perl",
 ".cgi" => "/usr/bin/perl"
)
fastcgi.server = ( ".php" =>
 ( "localhost" => 
 ( 
 "socket" => "/tmp/php-fastcgi.socket",
 "bin-path" => "/usr/bin/php5-cgi"
        )
  )
)
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/lighttpd/password/download.pwd"
auth.require = ("/download/" => (
  "method"  => "basic",
  "realm"   => "admin",
  "require" => "valid-user"
))
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/ssl/lighttpd.pem"
$HTTP["host"] == "admin.meinedomain.de:443" {
server.document-root = "/var/www/wartung/htdocs/"
accesslog.filename = "/var/log/lighttpd/wartung.log"
status.status-url = "/server-status"
status.config-url = "/server-config"
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/lighttpd/password/admin.pwd"
auth.require = ("/" => (
   "method"  => "basic",
   "realm"   => "admin",
   "require" => "valid-user"
))
     }
}
EOF
bin im mom nicht zuhause, werde das prüfen wenn ich wieder da bin...

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 16:40
by sledge0303
Und wie schaut es damit aus?

Code: Select all

htpasswd -cmd /var/lighttpd/etc/lighttpd/password/download.pwd $username
htpasswd -cmd /var/lighttpd/etc/lighttpd/password/admin.pwd $admin
Das Passwortverzeichnis muss muss im Gegensatz zum SSL im chroot Verzeichnis stehen!
Ich hab mir schon etwas dabei geacht wenn es so im Howto drin steht.

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 16:45
by oemi1980
sledge0303 wrote:Und wie schaut es damit aus?

Code: Select all

htpasswd -cmd /var/lighttpd/etc/lighttpd/password/download.pwd $username
htpasswd -cmd /var/lighttpd/etc/lighttpd/password/admin.pwd $admin
Das Passwortverzeichnis muss muss im Gegensatz zum SSL im chroot Verzeichnis stehen!
im howto steht:
htpasswd -cmd /var/lighttpd/etc/lighttpd/password/admin.pwd $adminpassword
kann das der fehler sein ?

Re: Brauche hilfe bei Debian Etch + Lighttpd installation

Posted: 2007-05-31 16:59
by sledge0303

Code: Select all

htpasswd -cmd /var/lighttpd/etc/lighttpd/password/admin.pwd $adminpassword
Ich hab (erneut) im Howto eine kleine Änderung vorgenommen. Statt Passwort $admin eingetragen. Unabhängig davon, dass man für eine Passwortabfrage einen Usernamen und Passwort einrichtet, sollte selbst einem Anfänger klar sein.
1. Zuerst Adminbenutzernamen
2. danach sein Passwort eingeben (Achtung: Passworteingabe erfolgt im Shadow)
3. danach sein Passwort eingeben, auch hier wieder eine Shadoweingabe des Passworts...