lighttpd/1.4.31 + fastcgi-mono-server2 = not working
Added by adwen over 12 years ago
lighttpd/1.4.31 (ssl) - a light and fast webserver
Build-Date: Jun 12 2012 09:41:23
Raspberry Pi - (OS)Raspbian “wheezy”
I'm having some problems getting fastcgi-mono-server2 working. I get the following error:
2012-10-15 22:04:49: (log.c.166) server started 2012-10-15 22:04:49: (mod_fastcgi.c.1103) the fastcgi-backend /usr/bin/fastcgi_mono_server2 failed to start: 2012-10-15 22:04:49: (mod_fastcgi.c.1107) child exited with status 2 /usr/bin/fastcgi_mono_server2 2012-10-15 22:04:49: (mod_fastcgi.c.1110) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version. If this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2012-10-15 22:04:49: (mod_fastcgi.c.1397) [ERROR]: spawning fcgi failed. 2012-10-15 22:04:49: (server.c.964) Configuration of plugins failed. Going down.
How do I debug this error? It is all vague on how to do this. What are the steps I have to take?
my conf file looks like this:
server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_redirect", "mod_fastcgi", # "mod_rewrite", "mod_accesslog" ) fastcgi.debug = 1 $HTTP["host"] == "localhost" { fastcgi.server = ( "" => (( "socket" => "/tmp/fastcgi-mono-server", "bin-path" => "/usr/bin/fastcgi_mono_server2", "bin-environment" => ( "PATH" => "/bin:/usr/bin", "LD_LIBRARY_PATH" => "/usr/lib:", "MONO_SHARED_DIR" => "/tmp/", "MONO_FCGI_LOGLEVELS" => "Standard", "MONO_FCGI_LOGFILE" => "/var/log/lighttpd/mono.log", "MONO_FCGI_ROOT" => "/var/www/dotnet", "MONO_FCGI_APPLICATIONS" => "/:." ), "max-procs" => 1, "check-local" => "disable" )) ) } fastcgi.map-extensions = ( ".asmx" => ".aspx", ".ashx" => ".aspx", ".asax" => ".aspx", ".ascx" => ".aspx", ".soap" => ".aspx", ".rem" => ".aspx", ".axd" => ".aspx", ".cs" => ".aspx", ".config" => ".aspx", ".dll" => ".aspx" ) server.document-root = "/var/www" server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) server.errorlog = "/var/log/lighttpd/error.log" server.accesslog = "/var/log/lighttpd/access.log" server.pid-file = "/var/run/lighttpd.pid" server.username = "www-data" server.groupname = "www-data" server.port = 80 index-file.names = ( "index.php", "index.html", "index.lighttpd.html", "index.aspx", "default.aspx" ) url.access-deny = ( "~", ".inc" ) static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) compress.cache-dir = "/var/cache/lighttpd/compress/" compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" ) # default listening port for IPv6 falls back to the IPv4 port include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port include_shell "/usr/share/lighttpd/create-mime.assign.pl" include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
What could be the problem? lighttpd looks pretty straight forward but i cannot get it to work.
Replies (2)
RE: lighttpd/1.4.31 + fastcgi-mono-server2 = not working - Added by galendel over 12 years ago
I have the same configuration and the same problem but it's for trac
Raspberry Pi - (OS)Raspbian “wheezy”
lighttpd/1.4.31 (ssl) - a light and fast webserver
Build-Date: Jun 12 2012 09:41:23
2012-11-02 21:53:02: (log.c.166) server started
2012-11-02 21:53:02: (mod_fastcgi.c.1365) --- fastcgi spawning local
proc: /usr/bin/php-cgi
port: 0
socket /tmp/php.socket
max-procs: 1
2012-11-02 21:53:02: (mod_fastcgi.c.1389) --- fastcgi spawning
port: 0
socket /tmp/php.socket
current: 0 / 1
2012-11-02 21:53:02: (mod_fastcgi.c.1365) --- fastcgi spawning local
proc: /var/www/gaiagen-trac.the-eworld.com.ar/srv/cgi-bin/trac.fcgi
port: 0
socket /tmp/trac-fastcgi.sock-1
max-procs: 4
2012-11-02 21:53:02: (mod_fastcgi.c.1389) --- fastcgi spawning
port: 0
socket /tmp/trac-fastcgi.sock-1
current: 0 / 4
2012-11-02 21:53:02: (mod_fastcgi.c.1103) the fastcgi-backend /var/www/gaiagen-trac.the-eworld.com.ar/srv/cgi-bin/trac.fcgi failed to start:
2012-11-02 21:53:02: (mod_fastcgi.c.1107) child exited with status 13 /var/www/gaiagen-trac.the-eworld.com.ar/srv/cgi-bin/trac.fcgi
2012-11-02 21:53:02: (mod_fastcgi.c.1110) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.
If this is PHP on Gentoo, add 'fastcgi' to the USE flags.
2012-11-02 21:53:02: (mod_fastcgi.c.1397) [ERROR]: spawning fcgi failed.
2012-11-02 21:53:02: (server.c.964) Configuration of plugins failed. Going down.
server.modules = (
"mod_auth",
- "mod_fastcgi"
- "mod_proxy",
- "mod_rewrite",
)
server.modules += ( "mod_fastcgi" )
fastcgi.debug = 1
server.document-root = "/var/www"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
- default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"var.fcgi_binary="/var/www/gaiagen-trac.the-eworld.com.ar/srv/cgi-bin/trac.fcgi" # 1.10 name of prior fcgi executable
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/var/www/gaiagen-trac.the-eworld.com.ar/trac.htpasswd"
auth.require = ("/trac/login" =>
("method" => "basic",
"realm" => "Gaiagen",
"require" => "valid-user"
)
)fastcgi.server += ("" =>
("trac" =>
("socket" => "/tmp/trac-fastcgi.sock-1",
"bin-path" => fcgi_binary,
"check-local" => "disable",
"bin-environment" =>
("TRAC_ENV" => "/var/www/gaiagen-trac.the-eworld.com.ar/")
)
)
)
RE: lighttpd/1.4.31 + fastcgi-mono-server2 = not working - Added by adwen over 12 years ago
I have a basic setup running now. It is really difficult to get this working. I wouldn't know how to make it work with trac.
Well I couldnt get it to run through the lighttpd conf file.
I launch the fastcgi-mono-server4 like this on the command line:
sudo MONO_IOMAP=all fastcgi-mono-server4 /socket=tcp:9000 /address=127.0.0.1 /applications=/:.,/peanuts:/var/www/dotnet/WebMonoTest/ /logfile=/var/log/lighttpd/fastcgi.log /verbose &
and in lighttpd.conf file I've replaced a part of it like this:
fastcgi.server = (
"" => ((
"host" => "127.0.0.1",
"port" => 9000,
"docroot" => "/var/www/dotnet/WebMonoTest",
"check-local" => "disable"
))
)
then i go
http://localhost/peanuts/Default.aspx and it works!
The only problem i'm having right now it should be able to type 'http://localhost/peanuts/' but this is still not working. I've added 'Default.aspx' to the index-file.names section but no luck. lighttpd is documented but support is really poor here. It is a shame.