python - "child exited with status 13" error with Lighttpd running Django app -


i trying run django application through lighttpd mod_fscgi. unfortunately keeps throwing error cant determine.

here config:

cat /etc/lighttpd/lighttpd.conf  server.modules              = (                                "mod_expire",                                "mod_setenv",                                "mod_redirect",                                "mod_rewrite",                                "mod_compress",                                "mod_access",                                "mod_auth",                                "mod_secdownload",                                "mod_accesslog",                                "mod_fastcgi", #                               "mod_geoip" )  server.document-root        = "/var/www/default" server.upload-dirs          = ( "/var/cache/lighttpd/uploads" ) server.errorlog             = "/var/www/logs/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" )  expire.url = ("/img/" => "access plus 10 days")  $http["host"] =~ “mydomain\.com” {     server.document-root = "/var/www/servers/mydomain.com/awesomesite"     accesslog.filename = "/var/www/logs/mydomain.com/access.log"     server.errorlog = "/var/www/logs/mydomain.com/error.log"     fastcgi.server = (         ".fcgi" => (             "localhost" => (                 # use host / port instead of socket tcp fastcgi                 # "host" => "127.0.0.1",                 # "port" => 3033,                 "bin-path" => "/var/www/servers/mydomain.com/awesomesite/mydomain.fcgi",                 "socket" => "/tmp/mydomain.sock",                 "check-local" => "disable",                 "min-procs" => 2,                 "max-procs" => 4,                 )            )      ) }  # default listening port ipv6 falls 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" 

the error:

/var/www/logs/mydomain.com# cat error.log  2014-03-10 09:01:26: (log.c.166) server started  2014-03-10 09:01:26: (mod_fastcgi.c.1103) fastcgi-backend /var/www/servers/mydomain.com/awesomesite/mydomain.fcgi failed start:  2014-03-10 09:01:26: (mod_fastcgi.c.1107) child exited status 13 /var/www/servers/mydomain.com/awesomesite/mydomain.fcgi  2014-03-10 09:01:26: (mod_fastcgi.c.1110) if you're trying run app fastcgi backend, make sure you're using fastcgi-enabled version. if php on gentoo, add 'fastcgi' use flags. mydomain 2014-03-10 09:01:26: (mod_fastcgi.c.1397) [error]: spawning fcgi failed.  2014-03-10 09:01:26: (server.c.976) configuration of plugins failed. going down.  

the fcgi file:

cat /var/www/servers/mydomain.com/awesomesite/mydomain.fcgi  #!/usr/bin/env python import sys, os  sys.path.insert(0, "/var/www/servers/mydomain.com")  os.environ['django_settings_module'] = "awesomesite.settings"  django.core.servers.fastcgi import runfastcgi runfastcgi(method="threaded", daemonize="false") 

fastcgi trying execute script specified in bin-path. make sure script /var/www/servers/mydomain.com/awesomesite/mydomain.fcgi has execution flag set issuing:

ls -l /var/www/servers/mydomain.com/awesomesite/mydomain.fcgi 

and verify x flag set user and/or group webserver/fastcgi runs as.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -