Page 1 of 1

Lighttpd compress Problem

Posted: 2010-08-01 01:33
by w0bble
Hallo,

habe auf einem Server das problem, dass nachdem ich mod_compress aktiviert habe sich das errorlog mit folgendem füllt:

Code: Select all

2010-08-01 01:24:40: (mod_fastcgi.c.2489) unexpected end-of-file (perhaps the fastcgi process died): pid: 29912 socket: unix:/tmp/php-fastcgi.socket-3
2010-08-01 01:24:40: (mod_fastcgi.c.3299) response not received, request sent: 1152 on socket: unix:/tmp/php-fastcgi.socket-3 for /index.php , closing connection
2010-08-01 01:25:44: (mod_fastcgi.c.2489) unexpected end-of-file (perhaps the fastcgi process died): pid: 29912 socket: unix:/tmp/php-fastcgi.socket-3
2010-08-01 01:25:44: (mod_fastcgi.c.3299) response not received, request sent: 1152 on socket: unix:/tmp/php-fastcgi.socket-3 for /index.php , closing connection

Finde dafür keine Lösung via google.

Vielleicht hat jemand von euch ne Idee?

Re: Lighttpd compress Problem

Posted: 2010-08-01 12:32
by Joe User
Deaktiviere erstmal das Komprimieren in der php.ini und den PHP-Apps. Dann setze das Logging in Lighty hoch.

Re: Lighttpd compress Problem

Posted: 2010-08-02 00:32
by w0bble
Es scheint doch nicht an mod_compress zu liegen. Habe heute alle nicht unbedingt benötigten module deaktiviert und auch in der php.ini die anpassen zurück gestellt. Der Fehler ist leider immer noch da ;/

Re: Lighttpd compress Problem

Posted: 2010-08-02 07:15
by jan10001
Ich würde auf einen Fehler im PHP Script tippen und mal diese index.php ansehen.

Re: Lighttpd compress Problem

Posted: 2010-08-02 12:13
by w0bble
Auf dem Server läuft ausschließlich ein Standard Woltlab Burning Board, da glaube ich nicht, das es da einene Fehler gibt?!

Ich hab bei PHP die Debug funktion schon eingeschaltet, aber ohne Ergebnisse. Wo kann ich sonst noch ansetzen?


Gruß

Re: Lighttpd compress Problem

Posted: 2010-08-02 13:33
by jan10001
Versuch mal die hier vorgeschlagenen Lösungen.
http://forum.lighttpd.net/topic/1135

Re: Lighttpd compress Problem

Posted: 2010-08-02 13:56
by Joe User
Also der altbekannte Bug mit PHP_FCGI_MAX_REQUESTS > 500 8)
Bitte PHP_FCGI_MAX_REQUESTS auf 500 setzen.

Re: Lighttpd compress Problem

Posted: 2010-08-02 14:28
by w0bble
matzewe01 wrote:
Stell mal bitte die fastcgi Konfiguration der lighttpd ein.

Code: Select all

fastcgi.server = ( ".php" =>
 ( "localhost" =>
 (
 "socket" => "/tmp/php-fastcgi.socket",
 "bin-path" => "/usr/bin/php5-cgi"
        )
)  )


Re: Lighttpd compress Problem

Posted: 2010-08-02 14:33
by w0bble
Joe User wrote:Also der altbekannte Bug mit PHP_FCGI_MAX_REQUESTS > 500 8)
Bitte PHP_FCGI_MAX_REQUESTS auf 500 setzen.
Hat leider auch nichts gebracht.

Re: Lighttpd compress Problem

Posted: 2010-08-02 14:38
by Joe User
matzewe01 wrote:pid: 29912 socket: unix:/tmp/php-fastcgi.socket-3

-> Er scheint mir auch die falsche Socket datei aufzurufen.
Das ist schon richtig so, für jeden Prozess (Default 4) wird automatisch eine Ziffer angehängt.

Re: Lighttpd compress Problem

Posted: 2010-08-02 14:42
by Joe User
w0bble wrote:
Joe User wrote:Also der altbekannte Bug mit PHP_FCGI_MAX_REQUESTS > 500 8)
Bitte PHP_FCGI_MAX_REQUESTS auf 500 setzen.
Hat leider auch nichts gebracht.
OK, dann musst Du wohl wie in dem oben verlinktem Forenbeitrag beschrieben das Script Debuggen.
Hast Du einen OPCode-Cache installiert? Link zur phpinfo? Hast Du Plugins im WBB?

Re: Lighttpd compress Problem

Posted: 2010-08-03 15:31
by w0bble
Zur allgemeinen Information:

Es lag an einem Bug in der Portalbox "Geburtstage"

Dieser wurde gestern behoben. Nachdem ich heute ein update gemacht habe ,sind auch keine fastcgi Errors mehr vorhanden :ymparty:

Da bin ich erstmal beruhigt, das es nicht unmittelbar mit der Serveradministration zusammenhing und danke euch für die vielen Vorschläge, durch deren umsetzung ich wiedermal viel gelernt habe.

Gruß

Ein erleichterter W0bble :wink:

Re: Lighttpd compress Problem

Posted: 2010-08-03 15:41
by Joe User
Wunderbar, dass der Bug behoben wurde.
Wenn Du möchtest, können wir Deine lighttpd.conf noch etwas optimieren/aufräumen.

Re: Lighttpd compress Problem

Posted: 2010-08-03 18:58
by w0bble
Das Angebot nehme ich gerne an!

Hier die bisherige Config:

Code: Select all

server.username = "www-data"
server.groupname = "www-data"
server.document-root = "/var/www/"
server.pid-file = "/var/run/lighttpd.pid"
server.errorlog = "/var/log/lighttpd/error.log"
accesslog.filename = "/var/log/lighttpd/access.log"
accesslog.format = "- - - %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\""
server.stat-cache-engine = "simple"
server.event-handler = "linux-sysepoll"
server.name = "www.domain.de
server.max-fds = 2048
server.follow-symlink = "enable"
server.dir-listing = "disable"
server.max-keep-alive-idle = 10

compress.cache-dir = "/tmp/lighttpd/"
compress.filetype = ("text/plain","text/css","text/xml","text/javascript","application/x-javascript")
server.modules = (
  "mod_access",
  "mod_status",
  "mod_alias",
  "mod_auth",
  "mod_evasive",
  "mod_fastcgi",
  "mod_rewrite",
  "mod_redirect",
  "mod_compress",
  "mod_cgi",
  "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 = (
 ".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",

        )
)  )
$HTTP["host"] =~ "^(.+\.)?domain\.de$" {

        $HTTP["host"] =~ "^domain\.de$" {
                url.rewrite-once = ( "^/(.*)" => "$0" )
                url.redirect = ( "^/(.*)" => "http://www.domain.de/$1" )
        }
        server.document-root = "/var/www/domain/"

#url.redirect = ( "^/$" => "/portal/" )
url.rewrite-once = (
        "^/$" => "/index.php?page=Portal",
        "^/tag/([0-9]+)-([^/\.]*)/?(\?(.*))?$" => "/index.php?page=TaggedObjects&tagID=$1&$4",
        "^/user/([0-9]+)/([^/\.]*)/?(\?(.*))?$" => "/index.php?page=User&userID=$1&username=$2&$4",
        "^/([0-9]+)-([^/\.]*)/last-post\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$1&action=lastPost&$4",
        "^/([0-9]+)-([^/\.]*)/first-new-post\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$1&action=firstNew&$4",
        "^/p([0-9]+)-([^/\.]*)\.html(\?(.*))?$" => "/index.php?page=Thread&postID=$1&$4",
        "^/([0-9]+)-([^/\.]*)/thread([0-9]+)\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$1&pageNo=$3&$5",
        "^/([0-9]+)-([^/\.]*)\.html(\?(.*))?$" => "/index.php?page=Thread&threadID=$1&$4",
        "^/([^/\.]+/)*([0-9]+)-([^/\.]+)/index([0-9]+)\.html(\?(.*))?$" => "/index.php?page=Board&boardID=$2&pageNo=$4&$6",
        "^/([^/\.]+/)*([0-9]+)-([^/\.]+)/?(\?(.*))?$" => "/index.php?page=Board&boardID=$2&$5",
        "^/forum/?(\?(.*))?$" => "/index.php?page=Index&$2",
        "^/index/?(\?(.*))?$" => "/index.php?page=ContentIndex&$2",
        "^/portal/?(\?(.*))?$" => "/index.php?page=Portal&$2"

)
}
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/lighttpd/password/admin.pwd"
auth.require = ("/secure" => (
   "method"  => "basic",
   "realm"   => "admin",
   "require" => "valid-user"
))