2016-09-13 4 views
1

이처럼 내 lighttpd.conf가 파일이 모습입니다 : 내가했던문제 실행 lighttpd를이

server.modules = (
    "mod_access", 
    "mod_alias", 
    "mod_compress", 
    "mod_accesslog", 
) 

server.document-root  = "/home/ashley/leagueratings" 
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" 


## Use ipv6 if available 
#include_shell "/usr/share/lighttpd/use-ipv6.pl" 


compress.cache-dir   = "/var/cache/lighttpd/compress/" 
compress.filetype   = ("application/x-javascript", "text/css", "text/html", "text/plain") 

include_shell "/usr/share/lighttpd/create-mime.assign.pl" 
include_shell "/usr/share/lighttpd/include-conf-enabled.pl" 

server.modules += ("mod_fastcgi") 
server.modules += ("mod_rewrite") 

fastcgi.server = ("/leagueratings.py" => 
("/" => ("socket" => "/tmp/fastcgi.socket", 
    "bin-path" => "/home/ashley/leagueratings.py", 
    "max-procs" => 1, 
    "bin-environment" => (
    "REAL_SCRIPT_NAME" => "" 
    ), 
    "check-local" => "disable" 
)) 
) 

url.rewrite-once = (
    "^/favicon.ico$" => "/static/favicon.ico", 
    "^/static/(.*)$" => "/static/$1", 
    "^/(.*)$" => "/leagueratings.py/$1", 
) 

모두

chown www-data:www-data leagueratings.py 

chmod +x leagueratings.py 

하지만 연결할 수 없습니다 내 웹 사이트에. 이 오류가

2016-09-13 19:37:35: (log.c.164) server started 
2016-09-13 19:49:49: (server.c.1558) server stopped by UID = 0 PID = 1 
2016-09-13 19:49:50: (log.c.164) server started 
2016-09-13 19:49:50: (mod_fastcgi.c.1112) the fastcgi-backend /home/ashley/leagueratings.py failed to start: 
2016-09-13 19:49:50: (mod_fastcgi.c.1116) child exited with status 2 /home/ashley/leagueratings.py 
2016-09-13 19:49:50: (mod_fastcgi.c.1119) 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. 
2016-09-13 19:49:50: (mod_fastcgi.c.1406) [ERROR]: spawning fcgi failed. 
2016-09-13 19:49:50: (server.c.1022) Configuration of plugins failed. Going down. 

이 제발 도와주세요 로그인되어 내가

lighttpd.conf가 변경 이전하기 전에 기본 사이트의 작업은 내 webpy 서버를 얻으려고 노력하고 오랜 시간이 지금 생산을 위해 봤네 . 나는 또한 apache2 및 nginx 시도했지만 아무것도 작동하는 것. 고맙습니다.

답변

0

2016년 9월 13일 19시 49분 50초 :

이 표시되지 않습니다 : (mod_fastcgi.c.1112)는 FastCGI를-백엔드 /home/ashley/leagueratings.py를 시작하지 못했습니다 웹 서버 문제가 될 수 있습니다.

leagueratings.py를 수동으로 시작 했습니까? 필요한 파이썬 모듈이 빠져 있거나 (또는 ​​설치가 필요함) 파이썬 스크립트에 구문 오류가있을 수 있습니다.