es liegt an /etc/init.d/rc.lighttpd
cat << EOF
server.modules = ( "mod_access", "mod_compress", "mod_webdav" )
index-file.names = ( "index.php", "index.html", "index.cgi", "index.htm", "default.htm", "index.rb" )
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",
".gz" => "application/x-gzip",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".tar.gz" => "application/x-tgz",
".tgz" => "application/x-tgz",
".tar" => "application/x-tar",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jar" => "application/x-java-archive",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".xbm" => "image/x-xbitmap",
".xpm" => "image/x-xpixmap",
".xwd" => "image/x-xwindowdump",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".asc" => "text/plain",
".c" => "text/plain",
".cpp" => "text/plain",
".log" => "text/plain",
".conf" => "text/plain",
".text" => "text/plain",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".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",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar",
"" => "application/octet-stream",
)
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".rb", ".cgi" )
server.port = 85
server.pid-file = "/var/run/lighttpd.pid"
server.username = "wwwrun"
server.groupname = "wwwrun"
connection.kbytes-per-second = 0
server.kbytes-per-second = 0
dir-listing.activate = "enable"
dir-listing.encoding = "utf-8"
server.errorlog = "/var/media/ftp/uStor01/dokumente/intranet/logs/error.log"
server.modules += ( "mod_accesslog" )
accesslog.filename = "/var/media/ftp/uStor01/dokumente/intranet/logs/access.log"
server.modules += ( "mod_status" )
status.enable-sort = "enable"
status.config-url = "/server-config"
status.statistics-url = "/server-statistics"
status.status-url = "/server-status"
server.modules += ( "mod_fastcgi" )
fastcgi.server = ( ".php" => (( "socket" => "/var/run/lighttpd/php-fastcgi.socket", "bin-path" => "/var/media/ftp/uStor01/dokumente/intranet/php/php-cgi", "max-procs" => 3 )) )
server.document-root = "/var/media/ftp/uStor01/dokumente/intranet/htdocs/"
compress.cache-dir = "/var/media/ftp/uStor01/dokumente/intranet/cache"
$HTTP["url"] =~ "^/dav($|/)" {
webdav.activate = "enable"
}
EOF
## Rudi-Editor
## Bitte umgebende Zeilen NICHT löschen ('cat > ...', 'RUDI_EOF')
cat > /var/mod/etc/lighttpd/lighttpd.conf << 'RUDI_EOF'
server.modules = ( "mod_access", "mod_compress", "mod_webdav" )
index-file.names = ( "index.php", "index.html", "index.cgi", "index.htm", "default.htm", "index.rb" )
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",
".gz" => "application/x-gzip",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".tar.gz" => "application/x-tgz",
".tgz" => "application/x-tgz",
".tar" => "application/x-tar",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jar" => "application/x-java-archive",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".xbm" => "image/x-xbitmap",
".xpm" => "image/x-xpixmap",
".xwd" => "image/x-xwindowdump",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".asc" => "text/plain",
".c" => "text/plain",
".cpp" => "text/plain",
".log" => "text/plain",
".conf" => "text/plain",
".text" => "text/plain",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".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",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar",
"" => "application/octet-stream",
)
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".rb", ".cgi" )
server.port = 85
server.pid-file = "/var/run/lighttpd.pid"
server.username = "wwwrun"
server.groupname = "wwwrun"
connection.kbytes-per-second = 0
server.kbytes-per-second = 0
dir-listing.activate = "enable"
dir-listing.encoding = "utf-8"
server.errorlog = "/var/media/ftp/uStor01/dokumente/intranet/logs/error.log"
server.modules += ( "mod_accesslog" )
accesslog.filename = "/var/media/ftp/uStor01/dokumente/intranet/logs/access.log"
server.modules += ( "mod_status" )
status.enable-sort = "enable"
status.config-url = "/server-config"
status.statistics-url = "/server-statistics"
status.status-url = "/server-status"
server.modules += ( "mod_fastcgi" )
fastcgi.server = ( ".php" => (( "socket" => "/var/run/lighttpd/php-fastcgi.socket", "bin-path" => "/var/media/ftp/uStor01/dokumente/intranet/php/php-cgi", "max-procs" => 3 )) )
server.document-root = "/var/media/ftp/uStor01/dokumente/intranet/htdocs/"
compress.cache-dir = "/var/media/ftp/uStor01/dokumente/intranet/cache"
["url"] =~ "^/dav($|/)" {
webdav.activate = "enable"
}
RUDI_EOF
oder willst du die haben "/var/mod/etc/lighttpd/lighttpd.conf"?
Code:cat > /tmp/flash/lighttpd_conf << 'RUDI_EOF' cat << EOF
/ # /etc/init.d/rc.lighttpd
Starting lighttpd web server .../ # /tmp/flash/lighttpd_conf: line 3: syntax err
or: unexpected "("
2010-03-28 21:05:46: (configfile.c.1202) a default document-root has to be set
2010-03-28 21:05:46: (server.c.613) setting default values failed
daemon failed.
cat > /tmp/flash/lighttpd_conf << 'RUDI_EOF'
cat << 'EOF'
/var/mod/root # /etc/init.d/rc.lighttpd
/usr/bin/modreg file lighttpd_user: Registration without <pkg> argument is depre
cated. Please switch to the new style. See /usr/bin/modreg for more details.
/usr/bin/modreg file lighttpd_rights: Registration without <pkg> argument is dep
recated. Please switch to the new style. See /usr/bin/modreg for more details.
/usr/bin/modreg file lighttpd_add: Registration without <pkg> argument is deprec
ated. Please switch to the new style. See /usr/bin/modreg for more details.
Starting lighttpd web server .../var/mod/root # done.
cat << 'EOF'
server.modules = ( "mod_access", "mod_compress", "mod_webdav" )
index-file.names = ( "index.php", "index.html", "index.cgi", "index.htm", "default.htm", "index.rb" )
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",
".gz" => "application/x-gzip",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".tar.gz" => "application/x-tgz",
".tgz" => "application/x-tgz",
".tar" => "application/x-tar",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jar" => "application/x-java-archive",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".xbm" => "image/x-xbitmap",
".xpm" => "image/x-xpixmap",
".xwd" => "image/x-xwindowdump",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".asc" => "text/plain",
".c" => "text/plain",
".cpp" => "text/plain",
".log" => "text/plain",
".conf" => "text/plain",
".text" => "text/plain",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".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",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar",
"" => "application/octet-stream",
)
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".rb", ".cgi" )
server.port = 85
server.pid-file = "/var/run/lighttpd.pid"
server.username = "wwwrun"
server.groupname = "wwwrun"
connection.kbytes-per-second = 0
server.kbytes-per-second = 0
dir-listing.activate = "enable"
dir-listing.encoding = "utf-8"
server.errorlog = "/var/media/ftp/uStor01/dokumente/intranet/logs/error.log"
server.modules += ( "mod_accesslog" )
accesslog.filename = "/var/media/ftp/uStor01/dokumente/intranet/logs/access.log"
server.modules += ( "mod_status" )
status.enable-sort = "enable"
status.config-url = "/server-config"
status.statistics-url = "/server-statistics"
status.status-url = "/server-status"
server.modules += ( "mod_fastcgi", "mod_alias" )
fastcgi.server = ( ".php" => (( "socket" => "/var/run/lighttpd/php-fastcgi.socket", "bin-path" => "/var/media/ftp/uStor01/dokumente/intranet/php/php-cgi", "max-procs" => 3 )) )
server.document-root = "/var/media/ftp/uStor01/dokumente/intranet/htdocs/"
compress.cache-dir = "/var/media/ftp/uStor01/dokumente/intranet/cache"
alias.url = ( "/mp3/" => "/var/media/ftp/uStor01/fritz/mediabox/" )
$HTTP["url"] =~ "^/dav($|/)" {
webdav.activate = "enable"
}
EOF
/var/mod/root # ls -ld /tmp/flash/lighttpd_conf
-rwxr-xr-x 1 root root 3113 Mar 29 13:32 /tmp/flash/lighttpd_conf
/var/mod/root #
/var/mod/root # modsave flash
Writing /var/flash/freetz...done.
32256 bytes written.
/var/mod/root #
/var/mod/root # ls -al /tmp/flash
drwxr-xr-x 6 root root 0 Jan 1 2000 .
drwxrwxrwt 5 root root 0 Mar 29 15:03 ..
-rw-r--r-- 1 root root 298 Mar 29 12:08 avm-firewall.diff
-rw-r--r-- 1 root root 28 Mar 24 23:05 bftpd.diff
-rwxr-xr-x 1 root root 934 Mar 25 14:37 bftpd_conf
-rw-r--r-- 1 root root 2 Mar 28 21:59 lighttpd-htdigest.user
-rw-r--r-- 1 root root 1 Mar 28 21:59 lighttpd-rights.user
-rw-r--r-- 1 root root 505 Mar 26 10:32 lighttpd.diff
-rwxr-xr-x 1 root root 3113 Mar 29 14:56 lighttpd_conf
drwxr-xr-x 2 root root 0 Jan 1 2000 mod
-rw-r--r-- 1 root root 218 Mar 29 14:49 mod.diff
-rw-r--r-- 1 root root 267 Mar 25 01:22 ntpd.conf
-rw-r--r-- 1 root root 59 Jan 1 2000 openntpd.diff
drwxr-xr-x 2 root root 0 Mar 17 12:58 php
-rw-r--r-- 1 root root 4100 Mar 17 12:58 php.ini
drwxr-xr-x 2 root root 0 Jan 1 2000 privoxy
-rw-r--r-- 1 root root 34 Mar 13 11:45 privoxy.diff
drwx------ 2 root root 0 Jan 1 2000 users
-rw-r--r-- 1 root root 91 Mar 24 20:50 vsftpd.diff
/var/mod/root #
/var/mod/root # /etc/init.d/rc.lighttpd
/usr/bin/modreg file lighttpd_user: Registration without <pkg> argument is depre
cated. Please switch to the new style. See /usr/bin/modreg for more details.
/usr/bin/modreg file lighttpd_rights: Registration without <pkg> argument is dep
recated. Please switch to the new style. See /usr/bin/modreg for more details.
/usr/bin/modreg file lighttpd_add: Registration without <pkg> argument is deprec
ated. Please switch to the new style. See /usr/bin/modreg for more details.
Starting lighttpd web server .../var/mod/root # /tmp/flash/lighttpd_conf: line 8
: not found
done.
2010-03-29 15:31:24: (log.c.166) server started
2010-03-29 15:31:24: (mod_fastcgi.c.978) bind failed for: unix:/var/run/lighttpd/php-fastcgi.socket-0 No such file or directory
2010-03-29 15:31:24: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed.
2010-03-29 15:31:24: (server.c.931) Configuration of plugins failed. Going down.
2010-03-29 15:58:22: (mod_fastcgi.c.978) bind failed for: unix:/var/run/lighttpd/php-fastcgi.socket-0 Address already in use