Good morning!

I installed Trac 0.11dev on a Solaris 10 Sparc system
and would like to use it with FastCGI under lighttpd 1.4.19.

To do so, I added the following to the lighttpd.conf:

############################################################ Trac:
server.modules += ("mod_alias")
alias.url = ("/trac/chrome/common" =>
"/export/home/webservd/trac/Trac-0.11dev/trac/htdocs")

$HTTP["url"] =~ "^/trac(?!/chrome/common)" {
        fastcgi.server = ("/trac" =>
                           ("trac" =>
                            ("socket" => "/tmp/trac-fastcgi.sock",
                             "bin-path" =>
"/export/home/webservd/trac/Trac-0.11dev/cgi-bin/trac.fcgi",
                             "check-local" => "disable",
                             "bin-environment" =>
                               ("TRAC_ENV" => "/export/home/webservd/trac/trac",
                               "LC_TIME" => "de_CH",
                               "PYTHONPATH" =>
"/opt/csw/lib/python/site-packages")
                            )
                          )
                        )
}
auth.backend = "htpasswd"
$HTTP["url"] =~ "^/trac" {
   auth.backend.htpasswd.userfile =
"/net/sys05/var/store/subversion/conf/svn-auth-file"
}
auth.require = ("/trac/login" =>
                ("method"   => "basic",
                 "realm"    => "Trac",
                 "require"  => "valid-user"
                )
               )
############################################################ Trac!

I installed the Trac egg in the Python installation under
/opt/csw (ie. the binary is at /opt/csw/bin/python, site-packages
is at /opt/csw/lib/python/site-packages). Because of that,
I modified the 1st line of trac.fcgi to point to /opt/csw/bin/python
instead of /usr/bin/python.

I can startup lighttpd just fine with this configuration. BUT when
I try to access http://$SERVER/trac, I get this in the error log of
lighttpd:

2008-06-04 09:30:23: (log.c.75) server started
2008-06-04 09:30:28: (mod_fastcgi.c.1743) connect failed: Connection
refused on unix:/tmp/trac-fastcgi.sock-3
2008-06-04 09:30:28: (mod_fastcgi.c.2912) backend died; we'll disable
it for 5 seconds and send the request to another backend instead:
reconnects: 0 load: 1
2008-06-04 09:30:28: (mod_fastcgi.c.2432) unexpected end-of-file
(perhaps the fastcgi process died): 8
2008-06-04 09:30:28: (mod_fastcgi.c.3281) response not received,
request sent: 931 on socket: unix:/tmp/trac-fastcgi.sock-3 for /trac ,
closing connection

$ ls -la /tmp/trac-fastcgi.sock-*
srwxr-xr-x   1 webservd nobody         0 Jun  4 09:30 /tmp/trac-fastcgi.sock-0
srwxr-xr-x   1 webservd nobody         0 Jun  4 09:30 /tmp/trac-fastcgi.sock-1
srwxr-xr-x   1 webservd nobody         0 Jun  4 09:30 /tmp/trac-fastcgi.sock-2
srwxr-xr-x   1 webservd nobody         0 Jun  4 09:30 /tmp/trac-fastcgi.sock-3

Those files get created when I start lighttpd.

I can use Trac just fine when I use the standalone tracd,
which is in /opt/csw/bin.

What did I do wrong?

Thanks a lot,

Michael

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
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