我有单声道2.11与我的nginx 1.0.15 web服务器运行在centos 6.2上设置。 我从源代码构build,xps2,xps4和fastcgi-mono-server2按预期工作。 问题是当我尝试运行fastcgi-mono-server4时。 当我运行: fastcgi-mono-server4 /applications=site:/:/srv/www/html/ /socket=tcp:127.0.0.1:9000 /loglevels=Debug /printlog=true 这是我从fastcgi-mono-server2得到的: [2012-06-06 23:51:07Z] Debug Record received. (Type: BeginRequest, ID: 1, Length: 8) [2012-06-06 23:51:07Z] Debug Record received. (Type: Params, ID: 1, Length: 801) [2012-06-06 23:51:07Z] Debug Record received. (Type: Params, ID: 1, Length: 0) [2012-06-06 23:51:07Z] Debug Read parameter. (QUERY_STRING = ) [2012-06-06 […]
nginx通过fastcgi连接到php-fpm,使用位置块中的标准/etc/nginx/fastcgi_params 。 当从命令行使用cgi-fcgi -bind -bind连接到/.status(php-fpm.ini :: ping.path)时,结果会按预期返回(X-Powered-By set,response body等)。 当用nginx请求时,结果会回到空(X-Powered-By集合,没有主体长度或内容)。 nginx返回200,因为它得到了“有效”的响应。 看着tcpdump,我在FCGI头文件中隔离了对奇偶校验的请求(减去shell设置的用户相关的envvariables)。
我有多个运行WordPress的虚拟网站,但是这个开始抛出错误,我无法find问题。 阿帕奇说: [Tue Jul 30 14:13:40 2013] [error] [client 82.100.0.70] FastCGI: comm with server "/var/www/uzivatel/www.domena.xy.php5-fcgi" aborted: idle timeout (30 sec) [Tue Jul 30 14:13:40 2013] [error] [client 82.100.0.70] FastCGI: incomplete headers (0 bytes) received from server "/var/www/uzivatel/www.domena.xy.php5-fcgi" 但是PHP-FPM日志是可以的(它在请求之后的几毫秒内生成): – – 30/Jul/2013:14:13:10 +0200 "GET /index.php" 200 /var/www/uzivatel/webs/www.domena.xy/index.php 793.871 35072 37.79/30.23 有代码200,所以页面似乎被正确创build,但Apache的行为就像从fastcgi服务器没有回应。 但有趣的部分是,当我切断页面生成之前,apache正确地返回到客户端。 但是如果我插入<?php die(); ?> 在标签之后,会发生同样的错误。 […]
目标是让PHP知道正确的面向web的server_port。 设置是: 在端口443上的nginx反向代理到在端口80上的清漆反向代理到在端口8008上的nginx并运行php-fpm作为fastcgi。 击中80或443都工作正常,除了$ _SERVER ['SERVER_PORT']在PHP总是显示8008默认情况下。 我可以硬编码一个fastcgi_param server_port,但它只会是正确的80或443,但不是两个。 # default fastcgi_param SERVER_PORT $server_port; # harcode to 80 fastcgi_param SERVER_PORT 80; 我怎样才能得到正确的面向外部的服务器端口可用于PHP?
每个可以处理多less请求? 需要多lessRAM? 正如我记得FastCGI是打开初始化进程,每个可以处理一个请求。 那么multithreading呢?
我最近使用apacheconfiguration加速器和fastcgi: http : //secure-ubuntu-server.blogspot.com/2009/07/howto-performance-tuning-of-lamp-and.html 现在我的Apache从不开始。 日志显示: Mon Jul 20 16:12:24 2009] [notice] ModSecurity for Apache/2.5.6 (http://www.modsecurity.org/) configured. [Mon Jul 20 16:12:25 2009] [notice] FastCGI: process manager initialized (pid 10919) [Mon Jul 20 16:12:25 2009] [alert] FastCGI: read() from pipe failed (0) [Mon Jul 20 16:12:25 2009] [alert] FastCGI: the PM is shutting down, Apache seems […]
我无法使Munindynamic缩放工作。 我确定这个问题与Nginxconfiguration有关。 任何生成缩放图的尝试都会在nginx日志中触发以下错误条目: 2015/02/22 13:26:01 [error] 4782#0: *2580 open() "/data/munin/usr/share/munin/cgi/munin-cgi-graph/bellaria/antergos1.bellaria/diskstats_latency/AntergosVG_AntergosRoot-pinpoint=1421756527,1424607727.png" failed (2: No such file or directory), client: 10.10.10.25, server: munin, request: "GET /usr/share/munin/cgi/munin-cgi-graph/bellaria/antergos1.bellaria/diskstats_latency/AntergosVG_AntergosRoot-pinpoint=1421756527,1424607727.png?&lower_limit=&upper_limit=&size_x=800&size_y=400 HTTP/1.1", host: "munin.bellaria", referrer: "http://munin.bellaria/static/dynazoom.html?cgiurl_graph=/usr/share/munin/cgi/munin-cgi-graph&plugin_name=bellaria/antergos1.bellaria/diskstats_latency/AntergosVG_AntergosRoot&size_x=800&size_y=400&start_epoch=1421756527&stop_epoch=1424607727" 具体来说,我怀疑fastCGI参数有问题。 愿一个友善的好心灵看看我的穆宁虚拟服务器(见下面)并向我解释什么是错的? 这让我发疯 – 但我有一个预感,任何专家都会在几分之一秒内发现问题。 # Munin server server { listen 80; server_name munin munin.bellaria; root /data/munin; allow all; access_log logs/munin.access.log; error_log logs/munin.error.log; location / { […]
我的PHP-CGI开始空白页面没有明显的原因,直到我重新启动的过程。 我想知道为什么。 不幸的是,PHP的“生产”configuration文件默认没有error_log。 我的Nginx错误日志也没有显示与PHP相关的错误。 这可能是一个无望的情况,但我只是为了以防万一。 这是我的设置 Nginx 0.8.2 PHP 5.2.6-3ubuntu4.1与Suhosin-Patch 0.9.6.2(cli)(内置:2009年4月23日14:37:14) PHP APC 3.0.19-2 spawn-fcgi v1.6.2(ipv6) – 来自lighttpd的fastcgi包装 任何想法可能会导致错误? 更新 我想我已经隔离了这个问题。 我一直在使用Monit来自动重新启动PHP,当它开始消隐。 我的PHP错误日志是空白的。 但是我发现如果我禁用了一个名为WP-SuperCache的WordPress插件,我的PHP停止了每10个小时的重置。 到目前为止,我的PHP已连续运行了三天。 有没有人对此有任何build议?
我运行Nginx并通过FastCGI代理PHP请求到PHP-FPM进行处理。 我将随机收到502错误的网关错误页面 – 我可以通过点击我的PHP网站非常迅速/刷新页面一两分钟来重现此问题。 当我得到502错误页面时,我所要做的就是刷新浏览器并正确刷新页面。 这是我的设置: nginx / 0.7.64 PHP 5.3.2(fpm-fcgi)(内置:Apr 1 2010 06:42:04)Ubuntu 9.10(最新的2.6 Paravirt) 我使用这个./configure指令编译PHP-FPM ./configure –enable -fpm –sysconfdir = / etc / php5 / conf.d –with-config-file-path = / etc / php5 / conf.d / php.ini –with-zlib –with -openssl –enable-zip –enable-exif –enable-ftp –enable-mbstring –enable-mbregex –enable-soap –enable-sockets –disable-cgi –with-curl –with -curlwrappers –with-gd –with-mcrypt –enable-memcache […]
我有一个虚拟机运行nginx,我想运行一个Trac站点。 我需要运行一个python FastCGI服务器,但我不知道哪个服务器要使用。 我发现了以下内容: Lighttpd spawn-fcgi但是,这似乎要求你编译lighttpd只是为了得到fcgi服务器,这很奇怪。 fcgi.py但是这个似乎被弃用。 至less它是不好的文件。 flup这个是依赖于ubuntu的(python-cheetah {a} python-mysqldb {a} python-webpy {a})。 也很lesslogging。 有没有最近的指导设置? Trac自己的FastCGI设置页面似乎错过了一些步骤。