Articles of FastCGI的

最有效的方法是每天使用cgi服务less于10个http请求

我们公司pipe理着超过一百台服务器,我们希望每天使用http“一次或两次”询问这些服务器的基本使用信息。 使用信息可以很容易地用perl cgi脚本find,我们希望有一个http接口来简化脚本的创build和testing。 让apache,甚至nginx + fcgiwrap,每天提供一个或两个请求似乎是一个矫枉过正的事情。 我们正在考虑使用openbsd-inetd(已经安装在所有的服务器上)启动一个web服务器,这个服务器可以很容易地把请求传递给perl cgi脚本。 有什么好办法做到这一点?

我的CentOS VPS使用100%CPU

我有一个512 MB的VPS,并在这个CentOS服务器上托pipe2个WordPress网站。 我已经在这台服务器上安装了apache + mysql + PHP + fast cgi。 从过去6个月一切都很好。 在两个网站上,我每天有500个用户。 所以没有巨大的负载。 但从昨天晚上(已经是12个小时),我有100%的CPU使用率和高内存使用率。 网站和服务器不可访问。 我试图重新启动服务器,认为这可能只是一些错误,但没有任何工作。 这是顶部的输出,但我不明白是什么问题,我怎么修复它。 好像有大量的php-cgi&httpd处理过。 top – 09:11:43 up 2 min, 1 user, load average: 26.91, 10.07, 3.67 Tasks: 137 total, 28 running, 109 sleeping, 0 stopped, 0 zombie Cpu(s): 36.4%us, 57.5%sy, 0.0%ni, 4.1%id, 1.4%wa, 0.0%hi, 0.1%si, 0.6%st Mem: 511036k total, 505416k […]

Fedora FastCGI上的nginx无法正常工作

我正在Fedora服务器22上运行nginx,而fastcgi脚本不能正常工作。 在http://panel.minefight.org/下input任何login数据,它不会加载密码失败或成功的网站。 其他login表单也会发生同样的情况。 服务器没有redirect用户,我不知道如何解决这个问题。 我希望这个例子很容易理解。 testing页面说,fastcgi正在运行,并与nginx连接。 php-fpm.conf : upstream php-fpm { server unix:/run/php-fpm/www.sock; } php.conf : index index.php index.html index.htm; location ~ \.php$ { try_files $uri =404; fastcgi_intercept_errors on; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass php-fpm; } 错误日志包含以下内容(当试图logingamepanel时): 2015/05/30 22:15:57 [error] 1911#0: *1 FastCGI sent in stderr: "PHP message: PHP Deprecated: mysql_connect(): The […]

nginx php-fpm如何禁用日志警告?

我已经用nginx + php-fpm设置了。 我在我的nginx错误日志中发现了很多这样的PHP警告消息: 2016/03/17 20:57:23 [error] 23002#0: *114868 FastCGI sent in stderr: "PHP message: PHP Warning: Declaration of Walker_Category_Filter::start_el(&$output, $category, $depth, $args) should be compatible with Walker_Category::start_el(&$output, $category, $depth = 0, $args = Array, $id = 0) in /var/www/wp-content/themes/venture/functions/theme/custom-post-types.php on line 0 PHP message: PHP Warning: Parameter 1 to W3_Plugin_TotalCache::ob_callback() expected to be a […]

为什么PHP作为FCGI运行需要产生多个孩子?

这有什么好处,而不是推出一个?

运行PHP作为fastcgi与Apache国防部与777目录权限

嗨,我是一个交易的Web开发人员,而不是服务器工程师,请耐心等待我! 我刚刚有一个新的Ubuntu LAMP VPS服务器,我正在尝试configuration。 我明白,运行PHP为Apache-MOD是运行PHP的最快方式。 但要实现这一点,我必须将我的目录设置为777,所以PHP可以写入他们。 而反过来ftp可以不再删除由PHP创build的dirs。 这似乎并不理想。 我明白,使用fast-cgi'php用户'和'ftp用户'是相同的,因此你不会得到这些问题,不必打开目录到777,以允许编写我明白的安全问题。 那么有什么好处呢 快速CGI许可755与apache国防部777权限? 谢谢 编辑 所以确定777显然不是很好。 但是,我怎么才能得到apache-mod和ftp用户是一样的 – 正如前面提到的,我不是服务器pipe理员! 谢谢

我如何开始与supervisord的php7.0-fpm?

我正在尝试用php7.0-fpmbuild立一个dockerized的ubuntu 16.04lts与apache2和nginx 我用过的命令,但没有工作 [program:php-fpm7.0] command = /usr/sbin/php-fpm7.0 –daemonize –fpm-config /etc/php/7.0/fpm/php-fpm.conf autostart=true autorestart=true priority=5 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 和 [program:php-fpm7.0] command = /usr/sbin/php-fpm7.0 -c /etc/php/7.0/fpm/php-fpm.conf autostart=true autorestart=true priority=5 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 和 [program:php-fpm7.0] command = /usr/sbin/php-fpm7.0 -c /etc/php/7.0/fpm autostart=true autorestart=true priority=5 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 下面是当我尝试作为容器运行时来自docker的错误日志 从apache2容器 2016-06-26 20:04:21,488 CRIT Set uid to user 0 […]

获取waaay太多“产生本地”fastcgi消息

我已经通过Ubuntu服务器上的fastcgi运行了7个Python应用程序。 我在Lighttpdconfiguration中打开fastcgidebugging,发现日志中有些奇怪: 通常情况下,当你启动Lighttpd / fastcgi时,你会在日志中看到一条消息: 2009-10-07 09:21:53:(mod_fastcgi.c.1365)— fastcgi产卵本地 proc:/etc/lighttpd/scripts/my_fcgi_script_name.py 端口:0 socket /var/www/.handles/my_site_name.socket min-procs:1 max-procs:1 2009-10-07 09:21:53:(mod_fastcgi.c.1390) 端口:0 socket /var/www/.handles/my_site_name.socket 当前:0/1 正如我所说,虽然,我有七个不同的应用程序运行Lighttpd。 我希望这些消息中的七个。 相反,我得到了49个! 它看起来像是每个脚本加载全部7个脚本一次(7×7 = 49)。 我尝试删除一个(所以有6),我得到36日志消息。 谁能告诉我发生了什么事?

试图“设置Apache的FastCGI”

我的系统是: wx3# uname -a FreeBSD wx3 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64 wx3# 安装包: wx3# pkg_info | grep -Ei '^apache|^ap22-mod_fastcgi|^php5-5.3|^spawn-fcgi' ap22-mod_fastcgi-2.4.6_2 A fast-cgi module for Apache apache-2.2.21 Version 2.2.x of Apache web server with prefork MPM. php5-5.3.8 PHP Scripting Language spawn-fcgi-1.6.3 spawn-fcgi is used to spawn fastcgi applications wx3# […]

为什么我会得到500内部服务器错误? – IIS7 – FastCgiModule与PHP

我从外面得到一个“500 – 内部服务器错误”,本地连接给了我500错误以及更长的debugging信息。 这个问题似乎与FastCgiModule: HTTP Error 500.0 – Internal Server Error An unknown FastCGI error occured Module FastCgiModule Notification ExecuteRequestHandler Handler PHP_via_FastCGI Error Code 0x80070005 我运行命令,通过强制运行cgi来testing连接: "C:\Program Files (x86)\PHP\php-cgi.exe" <path to website> 那确实输出了PHP / HTML代码,而不是500错误。 我相信这个问题必须与IIS存在。 服务器在星期五正常运行,没有任何变化,我知道。 服务器的重新启动没有改变,仍然显示错误。 希望我提供这个到正确的网站/论坛。 有谁知道我为什么会得到这个错误? 编辑:添加500错误和“未知的FastCGI错误发生”