Nyx*_*nyx 2 ubuntu fastcgi php5 php-fpm apache-2.2
我在安装php-fpm与apache2-mpm-worker. Ť他是导向,我以下。
根据指南的第 5 步,
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
Run Code Online (Sandbox Code Playgroud)
但是我php5-fcgi在/usr/lib,但只有/usr/bin/php5-cgiand找不到,/usr/bin/php-cgi我不确定它们是否相同。
所以我将步骤 5 中的行更改为:
Alias /php5-fcgi /usr/bin/php5-fcgi
FastCgiExternalServer /usr/bin/php5-fcgi -host 127.0.0.1:9000 -pass-header
Run Code Online (Sandbox Code Playgroud)
在重新启动 Apache 时,它的日志给出了错误:
[notice] caught SIGTERM, shutting down
[alert] (4)Interrupted system call: FastCGI: read() from pipe failed (0)
[alert] (4)Interrupted system call: FastCGI: the PM is shutting down, Apache seems to have disappeared - bye
[notice] Apache/2.2.22 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 configured -- resuming normal operations
[notice] FastCGI: process manager initialized (pid 16348)
Run Code Online (Sandbox Code Playgroud)
并在加载索引页面
[error] [client 10.0.2.2] (111)Connection refused: FastCGI: failed to connect to server "/usr/bin/php5-cgi": connect() failed
[error] [client 10.0.2.2] FastCGI: incomplete headers (0 bytes) received from server "/usr/bin/php5-cgi"
[error] [client 10.0.2.2] File does not exist: /var/www/mydomain/public/favicon.ico
Run Code Online (Sandbox Code Playgroud)
问题:知道为什么php5-fcgi会丢失,应该如何解决这个问题?谢谢!!:)
你应该把它设置回
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
Run Code Online (Sandbox Code Playgroud)
它不存在,因为下一行拦截了调用并将其转发到 fpm
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization -idle-timeout 3600
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12609 次 |
| 最近记录: |