Articles of FastCGI的

FastCGI发送stderr:“主要脚本未知”+ Owncloud

我遇到了一个奇怪的错误,我的nginx / php5-fpmconfiguration。 我已经在自己的云论坛上发布了这个问题,并且问了nginx论坛,但是他们不知道。 当我searchserverfault时,关于这个主题的build议并不直接适用于我的问题,因为他们都共享一个错误configuration的位置块,我认为,在这里是不是这种情况(我从自己的云文档直接configuration)。 那么问题是什么? 我的nginx error.log填充了这些: "FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: MY IP, server: MY DOMAIN, request: "GET /core/img/actions/history.svg HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "MY HOSTNAME/DOMAIN", referrer: "MY DOMAIN" Owncloud运行在一个子目录/srv/www/owncloud,根目录指向/srv/www 。 如果我把相同的configuration指向root /srv/www/owncloud ; 同样的错误是造成,但这次它读取: FastCGI sent in stderr: "Primary script unknown" while reading response […]

具有空格的IIS FastCGI scriptProcessor?

我想configuration一个FastCGI模块 – 整个事情工作正常,如果我使用一个没有空格的path,但我们的应用程序安装到C:\ Program Files文件和其他空间是常见的path。 web.config的相关部分如下所示: 请不要使用Pipe |之后的部分来configurationWFastCGI – 一种在IIS后面运行python WSGI服务器的方法。

Nginx的fastcgi_cache_valid vs fastcgi_cache_path的不活动

如果我configuration fastcgi_cache_path /opt/nginx levels=1:2 keys_zone=TEST:100m inactive=40m; .. fastcgi_ignore_headers Cache-Control Expires Set-Cookie; fastcgi_cache_valid 30m; 我的caching存储在上面的path多久?

FastCGI“静态”和“dynamic”应用程序在性能和稳定性方面有什么区别?

我想知道在使用mod_fastcgi的Apache 2服务器中将应用程序configuration为静态或dynamic时需要考虑的事项。 这个应用程序是一个典型的报告应用程序,用MySQL编写,作为Db后端,具有相当中等的stream量。 我很想听听你在这种情况下运行FastCGI的经验。

需要确定如何在LAMPconfiguration中呈现php文件(CGI,FastCGI或mod-php)

如何确定我们的PHP文件如何在简单的LAMPconfiguration中呈现? phpinfo显示: — Configure Command — –enable-force-cgi-redirect –enable-fastcgi — Server API — CGI/FastCGI — cgi-fcgi — Directive Local Value Master Value cgi.check_shebang_line 1 1 cgi.fix_pathinfo 1 1 cgi.force_redirect 1 1 cgi.nph 0 0 cgi.redirect_status_env no value no value cgi.rfc2616_headers 0 0 fastcgi.logging 1 1

PHP FastCGI SAPI:重新加载PHPconfiguration

我在我的虚拟主机环境中使用PHP FastCGI SAPI来运行PHP应用程序。 为了产生FCGI进程,我使用了spawn-fcgi帮助程序。 我的问题是每当我改变php.ini文件,我必须杀死和重新生成每个FastCGI服务器的新configuration才能生效。 有没有办法重新加载PHPconfiguration(即。php.ini指令),而不重新生成每个FastCGI服务器? 我尝试发送挂断信号(即kill -HUP PHPCGIPID )到服务器,但这会导致服务器终止。

不受限制的访问单个文件+ FastCGI与basic_auth整个域在Nginx

什么是最简单的方法来限制访问除了一个,其中整个域通过FastCGI服务的所有文件? 使用下面的conf时出现的问题是我无法访问/ dir(我在某种循环中要求input密码,正确的login名+密码不让我进入)。 另外,同样的fastCGIconfiguration复制在location = /unrestricted_file.php和location〜.php $中。 结构是: server { location = /unrestricted_file.php { # FastCGI conf… break; } location / { root index auth_basic "Restricted"; auth_basic_user_file file; } location /dir { auth_basic "Restricted"; auth_basic_user_file file; } location ~ \.php$ { auth_basic "Restricted"; auth_basic_user_file file; # fastcgi_pass… } }

configuration为FastCGI的PHP的Apache和不带后缀的脚本

我使用mod_fcgid在Apache内部工作FastCGI PHP。 但是我注意到PHP脚本甚至没有指定后缀.php。 例如:如果文件是mail.php那么http://example.com/mail.php和http://example.com/mail返回相同的PHP文件mail.php 这是常见的行为? 而且应该是这个(执行没有后缀)禁用? 我的Apacheconfiguration是: AddHandler fcgid-script .php <Directory "{WwwRoot}"> Options -Indexes MultiViews FollowSymLinks +ExecCGI FCGIWrapper {ConfigsRoot}/fcgi-php5 .php Order allow,deny allow from all </Directory> 用简单的包装 #!/bin/sh PHP_FCGI_CHILDREN=3 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=2000 export PHP_FCGI_MAX_REQUESTS /usr/bin/php5-cgi 谢谢。

Mono通过nginx上的FastCGI

我正在通过http://www.mono-project.com/FastCGI_Nginx,并无法得到它的工作。 FastCGI服务器似乎正在运行。 以下是来自错误日志: 上游发送意外的FastCGIlogging:3从上游读取响应头,客户端:192.168.1.125,服务器:arch,请求:“GET /Default.aspx HTTP / 1.1”,上游:“fastcgi://127.0.0.1:9000” ,主持人:“拱门” 用于启动服务器的命令(我已经尝试了server2和server4,使用一个简单的.NET 2.0或.NET 4.0项目): fastcgi-mono-server2 / applications = arch:/:/ var / www / test / public / /socket=tcp:127.0.0.1:9000 / stopable = True nginxconfiguration: server { listen 80; server_name arch; access_log /var/www/test/log/access.log; error_log /var/www/test/log/error.log; location / { root /var/www/test/public; index index.html index.htm default.aspx Default.aspx; fastcgi_index Default.aspx; fastcgi_pass 127.0.0.1:9000; […]

试图用nginx和fastcgi在rails应用程序中安装wordpress

我有一个rails应用程序(让我们称之为myapp)在www.myapp.com上运行。 我想在www.myapp.com/blog上添加一个WordPress博客。 rails应用程序的web服务器很薄(请参阅上游块)。 wordpress运行php-fastcgi。 导轨应用程序工作正常。 我的问题是以下:在/home/myapp/myapp/log/error.log error我得到: 2013/06/24 10:19:40 [error] 26066#0: *4 connect() failed (111: Connection refused) while connecti\ ng to upstream, client: xx.xx.138.20, server: www.myapp.com, request: "GET /blog/ HTTP/1.1", \ upstream: "fastcgi://127.0.0.1:9000", host: "www.myapp.com" 这里是nginx conf文件: upstream myapp { server unix:/tmp/thin_myapp.0.sock; server unix:/tmp/thin_myapp.1.sock; server unix:/tmp/thin_myapp2.sock; } server { listen 80; server_name www.myapp.com; client_max_body_size 20M; […]