잘못된 파일 (마지막에 정의 된 해당 가상 호스트에 대해 정의 된 오류 로그)에 로깅하는 것 외에도
lighty로 PHP 7을 사용할 수 없습니다. 무엇이 누락 되었습니까?PHP 7에 구성된 lighttpd를 가져올 수 없습니다.
cgi.fix_pathinfo
은 /etc/php/7.0/fpm/php.ini
에서 사용할 수 있습니다.
어떻게하면 make sure you're using the FastCGI-enabled version
을 사용할 수 있습니까? 내가 뭘 더 찾아야하니? (필요한로 수축)
버전 정보
> lsb_release -a
Description: Ubuntu 16.04.1 LTS
Codename: xenial
> lighttpd -v
lighttpd/1.4.35 (ssl) - a light and fast webserver
Build-Date: Apr 18 2016 15:36:10
> php -v
PHP 7.0.8-0ubuntu0.16.04.3 (cli) (NTS)
> php-cgi -v
PHP 5.6.23-1+deprecated+dontuse+deb.sury.org~trusty+1 (cgi-fcgi)
> php-fpm7.0 -v
PHP 7.0.8-0ubuntu0.16.04.3 (fpm-fcgi)
Lighty는 설정 파일 발췌
> head -41 /etc/lighttpd/lighttpd.conf | tail -9
fastcgi.server = (".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket",
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "16",
"PHP_FCGI_MAX_REQUESTS" => "1000"
),
"broken-scriptfilename" => "enable"
)))
적성
내가 잘못된 경로로 소켓을 변경하는 경우 , lighttpd 작동 재시작 벌금; 그러나 서버에 도달 할 수 없습니다. (오류 로그에 bind failed for: (invalid path)
); 그래서 이것은 올바른 설정 파일처럼 보입니다.
동일한 방법으로 /etc/lighttpd/conf-available/15-fastcgi-php.conf
을 수정해도 전혀 영향을 미치지 않습니다.
소켓을 "/var/run/php/php7.0-fpm.sock"
으로 변경해도 효과가 없습니다 (php_info()
은 lighty를 다시 시작한 후에도 여전히 PHP 5.6을 말합니다).
bin 경로를 /usr/sbin/php-fpm7.0
으로 변경 한 후 lighttpd를 다시 시작할 때 오류가 발생하지 않지만 웹 서버에 연결할 수 없습니다.
오류 로그 발췌
> tail /var/log/lighttpd/error.log
(no output)
> tail /var/log/lighttpd/somevhost/error.log
2016-10-10 16:48:02: (log.c.164) server started
2016-10-10 16:48:02: (mod_fastcgi.c.1112) the fastcgi-backend /usr/sbin/php-fpm7-0 failed to start:
2016-10-10 16:48:02: (mod_fastcgi.c.1116) child exited with status 2 /usr/sbin/php-fpm7-0
2016-10-10 16:48:02: (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-10-10 16:48:02: (mod_fastcgi.c.1406) [ERROR]: spawning fcgi failed.
2016-10-10 16:48:02: (server.c.1022) Configuration of plugins failed. Going down.
갱신 나는 단지 제거 PHP5이이 문제를 해결 바라고; 그러나 그것도 도움이되지 못했습니다. 대신, 나는 php5를 다시 얻을 수있는 방법이없는 것 같다.