2016-06-23 7 views
0

:이 Lighttpd 서버 문제 : FCGI 관련 오류 나는 다음과 같은 설정 옵션을 사용하여 PHP를 컴파일 우분투 (16)에

./configure --enable-debug \ 
    --enable-maintainer-zts \ 
    --enable-pthreads \ 
    --with-mysql=mysqlnd \ 
    --with-mysqli=mysqlnd \ 
    --with-pdo-mysql=mysqlnd \ 
    --enable-mbstring \ 
    --enable-cgi \ 
    --with-curl \ 
    --enable-soap \ 
    --enable-zip \ 
    --with-mcrypt \ 
    --with-kerberos \ 
    --with-zlib \ 
    --with-gettext \ 
    --enable-posix \ 
    --enable-sockets \ 
    --enable-pcntl \ 
    --with-pear \ 
    --with-sqlite3 \ 
    --enable-inline-optimization \ 
    --disable-rpath \ 
    --enable-sockets \ 
    --enable-sysvsem \ 
    --enable-sysvshm \ 
    --enable-mbregex \ 
    --enable-bcmath \ 
    --with-pcre-regex \ 
    --with-openssl \ 
    --enable-ftp \ 
    --with-imap \ 
    --with-imap-ssl \ 
    --with-mhash \ 
    --with-xmlrpc \ 
    --with-xsl \ 
    --enable-opcache 

가 성공적으로 컴파일!

그럼 내가

sudo service lighttpd status 

그것은 오류를 표시 입력 재부팅 한 후

apt-get install lighttpd gamin 
lighty-enable-mod fastcgi 
lighty-enable-mod fastcgi-php 
service lighttpd force-reload 

를 사용합니다. 이 Lighttpd의 오류 로그에서 나는이 :

2016-06-23 03:14:55: (log.c.164) server started 
2016-06-23 03:15:02: (server.c.1558) server stopped by UID = 0 PID = 1 
2016-06-23 03:15:03: (log.c.164) server started 
2016-06-23 03:15:03: (mod_fastcgi.c.1112) the fastcgi-backend /usr/bin/php-cgi failed to start: 
2016-06-23 03:15:03: (mod_fastcgi.c.1116) child exited with status 2 /usr/bin/php-cgi 
2016-06-23 03:15:03: (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-06-23 03:15:03: (mod_fastcgi.c.1406) [ERROR]: spawning fcgi failed. 
2016-06-23 03:15:03: (server.c.1022) Configuration of plugins failed. Going down. 

어떻게이 문제를 해결하기 위해? 우분투 12.x/14.x에서 동일한 작업을 수행하고 Lighttpd가 정상적으로 작동했습니다.

답변

0

/usr/bin/php-cgi가 있는지 확인하십시오.), 그리고 나서 '/ usr/bin/php-cgi your-script-here'를 수동으로 실행하십시오, lighttpd가 그것을 실행할 것 인 경우와 같습니다. 그런 다음 스크립트가 실패한 이유를 확인해야합니다.