Hi,

I have problem with running Trac with lighttpd and mod_fcgcgi.

I am using the following lighttpd settings:
# {{{ variables
var.basedir  = "/var/www/localhost"
var.logdir   = "/var/log/lighttpd"
var.statedir = "/var/lib/lighttpd"
# }}}

# {{{ modules
server.modules = (
    "mod_fastcgi",
    "mod_access",
    "mod_accesslog"
)
# }}}

# {{{ includes
include "mime-types.conf"
# }}}

# {{{ server settings
server.username      = "lighttpd"
server.groupname     = "lighttpd"

server.document-root = var.basedir + "/htdocs"
server.pid-file      = "/var/run/lighttpd.pid"
server.errorlog      = var.logdir  + "/error.log"

server.indexfiles    = ("index.php", "index.html",
                                                "index.htm",
"default.htm")

# server.tag           = "lighttpd"

server.follow-symlink = "enable"

server.port          = 81

# }}}

accesslog.filename   = var.logdir + "/access.log"
url.access-deny = ("~", ".inc")

var.fcgi_binary="/usr/bin/python /usr/lib/python2.5/site-packages/trac/
web/fcgi_frontend.py"

fastcgi.debug = 1
fastcgi.server = ("/trac" =>
                      ("trac" =>
                          ("socket" => "/var/tmp/lighttpd/trac-
fastcgi.sock",
                           "bin-path" => fcgi_binary,
                           "check-local" => "disable",
                           "bin-environment" =>
                           ("TRAC_ENV" => "/mnt/data_raid1/proj/
trac/",
                            "PYTHON_EGG_CACHE" => "/mnt/data_raid1/
proj/trac/.egg-cache" )
                           )
                      )
                  )

Rights for the directories are
ls -la /var/tmp/lighttpd/
drwxrwx--- 2 lighttpd lighttpd 4096 Sep  9 05:52 .

drwxr-xr-x 10 lighttpd lighttpd 4096 Sep  7 21:12 .
drwxr-xr-x  3 root     root     4096 Sep  4 21:18 ..
drwxr-xr-x  2 lighttpd lighttpd 4096 Sep  7 21:12 .egg-cache
-rw-r--r--  1 lighttpd lighttpd   98 Sep  4 21:21 README
-rw-r--r--  1 lighttpd lighttpd   27 Sep  4 21:21 VERSION
drwxr-xr-x  2 lighttpd lighttpd 4096 Sep  4 21:22 attachments
drwxr-xr-x  2 lighttpd lighttpd 4096 Sep  4 21:22 conf
drwxr-xr-x  2 lighttpd lighttpd 4096 Sep  4 22:08 db
drwxr-xr-x  2 lighttpd lighttpd 4096 Sep  4 21:21 htdocs
-rw-r--r--  1 lighttpd lighttpd    0 Sep  7 08:04 htpasswd.htaccess_
drwxr-xr-x  2 lighttpd lighttpd 4096 Sep  4 21:21 log
drwxr-xr-x  2 lighttpd lighttpd 4096 Sep  4 21:21 plugins
drwxr-xr-x  2 lighttpd lighttpd 4096 Sep  4 21:22 templates


When I start lighttpd, 4 instances of fcgi_frontend runs
 1687 ?        S      0:00 /usr/sbin/lighttpd -f /etc/lighttpd/
lighttpd.conf
 1689 ?        D      0:01 /usr/bin/python /usr/lib/python2.5/site-
packages/trac/web/fcgi_frontend.py
 1690 ?        D      0:01 /usr/bin/python /usr/lib/python2.5/site-
packages/trac/web/fcgi_frontend.py
 1691 ?        D      0:01 /usr/bin/python /usr/lib/python2.5/site-
packages/trac/web/fcgi_frontend.py
 1692 ?        D      0:01 /usr/bin/python /usr/lib/python2.5/site-
packages/trac/web/fcgi_frontend.py

But when I try to connect tu /trac I receive 500 - Internal Server
Error
error.log says:
2009-09-09 06:15:00: (mod_fastcgi.c.2961) got proc: pid: 1692 socket:
unix:/var/tmp/lighttpd/trac-fastcgi.sock-3 load: 1
2009-09-09 06:15:01: (mod_fastcgi.c.2471) unexpected end-of-file
(perhaps the fastcgi process died): pid: 1692 socket: unix:/var/tmp/
lighttpd/trac-fastcgi.sock-3
2009-09-09 06:15:01: (mod_fastcgi.c.3281) response not received,
request sent: 864 on socket: unix:/var/tmp/lighttpd/trac-
fastcgi.sock-3 for /trac , closing connection
2009-09-09 06:15:01: (mod_fastcgi.c.1490) released proc: pid: 1692
socket: unix:/var/tmp/lighttpd/trac-fastcgi.sock-3 load: 0

And the last fcgi_frontend is in the defunct state
 1692 ?        Z      0:06 [python] <defunct>

My system is gentoo with 2.6.12.6-arm1 kernel
lighttpd version is  1.4.19-r2
trac version is 0.11.2

What am I doing wrong? Can anyone help me please?

Thank tou.





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to