Articles of FastCGI的

Fastcgi请求logging太大

我正在运行一个Nginx服务器,它要求我接受包含高达4mb数据的URIstring。 我已经configurationnginx通过设置接受参数: /etc/nginx/nginx.conf large_client_header_buffers 18 2048k; client_header_buffer_size 10m; 服务器现在接受请求,但会引发内部错误500 。 看在site-error.log ,这是我得到: 1 fastcgi request record is too big: 2425046 看着这个请求,这个数据被削减到了大约4K。 是否有可能接受这么大的请求,以及如何?

如何禁用Windows IIS 6服务器上的FastCGI?

我们使用WordPress的公司网站,它已经崩溃,没有明显的原因。 它给出了这样的错误消息: FastCGI Error The FastCGI Handler was unable to process the request. Error Details: The FastCGI process has failed frequently recently. Try the request again in a while Error Number: -2147467259 (0x80004005). Error Description: Unspecified error HTTP Error 500 – Server Error. Internet Information Services (IIS) 看完之后,WordPress似乎并不适合FastCGI,也不需要使用它。 有谁能够告诉我如何将FastCGI与WordPress的交互closures?

文件不能从我的nginx通过PHP完全下载

我在我的小型服务器(BeagleBoneBlack)上有一个文件,我想下载到另一台机器上。 因此,我尝试通过PHP从我的nginx-web服务器。 文件大小约为1.2 GB,下载总是停在大约410MB。 由于两台计算机在同一个交换机后面,我不会看到连接问题。 此外,我可以排除软件问题的可能性,因为我使用不同的PHP软件进行了testing,发生同样的问题。 通过SCP下载工作没有问题。 在通过PHP下载期间,我会看到/proc/loadavg值 3.15 1.17 0.46 1/95 1163 3.15 1.17 0.46 1/95 1164 3.14 1.20 0.48 1/95 1165 3.14 1.20 0.48 1/95 1166 3.21 1.25 0.50 1/95 1167 3.21 1.25 0.50 1/95 1168 3.21 1.25 0.50 1/95 1169 3.44 1.43 0.57 1/95 1172 3.42 1.52 0.61 2/95 1175 3.42 1.52 […]

Nginxredirect失败的icingaweb2

我正在尝试使用NginxconfigurationIcingaWeb2,并且遇到了一些问题。 build议的Icinga Nginxconfiguration是: location ~ ^/icingaweb2/index\.php(.*)$ { # fastcgi_pass 127.0.0.1:9000; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME /usr/share/icingaweb2/public/index.php; fastcgi_param ICINGAWEB_CONFIGDIR /etc/icingaweb2; fastcgi_param REMOTE_USER $remote_user; } location ~ ^/icingaweb2(.+)? { alias /usr/share/icingaweb2/public; index index.php; try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args; } 这工作正常,但让我们的networking/ icingaweb2 /而我想要它/。 如果我只是删除icingaweb2 /从conf,它工作正常的每个url,但/。 我目前的configuration是: server { listen 443 ssl default_server; server_name example.com ssl_certificate […]

错误与Apache 2.4和PHP 5.6.14-0 + deb8u1与fpm

我有一个Vagrant机器: Apache / 2.4.10(Debian) PHP 5.6.14-0 + deb8u1和PHP-FPM。 在某些情况下,我得到这个错误:500内部服务器错误。 我在php5-fpm.log中有这个消息 [09-Dec-2015 20:01:24] WARNING: [pool www] child 608 exited on signal 11 (SIGSEGV) after 368.307577 seconds from start 而在error.log文件中,我有这个消息: [Wed Dec 09 20:01:24.944748 2015] [fastcgi:error] [pid 535:tid 140236008924928] (104)Connection reset by peer: [client 192.168.33.1:57201] FastCGI: comm with server "/usr/lib/cgi-bin/php5-fcgi" aborted: read failed [Wed Dec 09 20:01:24.945014 […]

PHP无法加载dynamic库…但它被加载。 WTF?

我有一个CentOS 5.4服务器与Apache 2.2.3,mod_fastcgi和PHP 5.2.11。 一切都很好,服务器是一个生产服务器,我没有任何抱怨。 当我查看PHP的错误日志来诊断一个特定的页面的问题,我看到以下定期重复一遍又一遍: [03-May-2010 19:54:12] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/apc.so' – /usr/lib/php/modules/apc.so: undefined symbol: php_rfc1867_callback in Unknown on line 0 [03-May-2010 19:54:12] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_mysql.so' – /usr/lib/php/modules/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce in Unknown on line 0 [03-May-2010 19:54:12] PHP Warning: PHP […]

有没有替代cgi / fastcgi

只是好奇知道,有没有其他的替代cgi / fastcgi?

将任意的http请求头传给nginx,然后传给php

我有这个在nginx和fastcgi(php-fpm)上运行的web服务。 Web服务被一些embedded的http客户端使用,这些客户端在使用服务时需要发送一些任意的http请求标头。 例如: CLIENT_ID: client1 CLIENT_AUTH_TOKEN: d84ldx 或类似的东西。 我不确定这种请求是否会在nginx到达时被捕获。 如果是这样,nginx将如何存储额外的HTTP头的值? 以及如何告诉nginx将parameter passing给php? 我已经试过了 fastcgi_param CLIETN_ID $client_id conf / fastcgi_paramsconfiguration文件,我认为这将帮助nginx存储在CLIENT_ID什么作为$ client_id参数。 我也放 fastcgi_param CLIENT_ID $client_id 只需获取$ client_id中存储的内容并将其作为键入的“CLIENT_ID”传递给php,这样php就可以用$ _SERVER ['CLIENT_ID']来访问它。 不幸的是,上面没有解决。 当我做 nginx -t 我得到错误“未知参数client_id”。 我在哪里弄错了,如何解决? 谢谢。

可以使用fastcgi的mono / xsp处理多个请求吗?

现在我正在使用nginx与mono / xsp通过fastcgi。 我没有看到任何明确的答案,但可以处理多个请求xsp / fastcgi? 我有一个实例运行我的所有网站。 如果我有每个站点的实例,我会得到更好的性能吗? (这可能只会发生,如果一个实例一次只能处理一个请求)。

Perl不能通过fastcgi与Nginx合作,无法破译错误日志

我运行CentOS 6.2 , Nginx 1.2.3遵循这些Linode指令让Perl与Nginx一起工作我已经做了所有的事情来testing一个实际的Perl文件。 当我这样做浏览器说: The page you are looking for is temporarily unavailable. Please try again later. 而我的Nginx error-log显示如下: 2012/09/02 22:09:58 [error] 20772#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.102, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:8999", host: "192.168.1.10:81" 我坚持在这一点上。 林不知道是否重要,但我也有spawn-fcgi和php-fpm来提供这个网站上的PHP文件,但这应该是从perl-fastcgi设置,不同的端口等100%分开。 我怎样才能解决这个问题?