Articles of php fpm

nginx子域redirect到URL

我有一个服务器运行nginx + php5-fpm与wordpress安装。 我的网站在example.com上提供,我想configurationadmin.example.com来指向我的网站贡献者example.com/wp-admin。 如何configuration我的服务器{}块来执行此操作?

nginx php-fpm一直在下载文件

虚拟主机: server { listen *:8080; location / { root /var/www/default/pub; index index.php; # if file exists return it right away if (-f $request_filename) { break; } if (!-e $request_filename) { rewrite ^(.+)$ /index.php$1 last; break; } } # serve static files directly location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ { access_log off; expires max; } location ~* \.php$ { […]

带有nginx前端反向代理的virtualmin面板上的Apache2,FastCGI,PHP-FPM,APC

我的梦想设置:在Apache2上的PHP 5.3.6 + MySQL 5.5.10,FastCGI,PHP-FPM,APC与nginx 1.0前端反向代理。 而作为免费的服务器pipe理面板:Virtualmin GPL on centos 5.6 在新的centos 5.6设置。 使用这个代码来安装virtualmin: wget http://software.virtualmin.com/gpl/scripts/install.sh chmod +x install.sh ./install.sh 安装后,我看到PHP是5.1和MySQL是5.0版本。 而系统不支持php-fpm,但支持fcgid包装。 我做了以下更改: wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-6.ius.el5.noarch.rpm wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-1-1.ius.el5.noarch.rpm rpm -Uvh ius-release*.rpm epel-release*.rpm yum install yum-plugin-replace yum remove mysql.i386 yum replace mysql –replace-with mysql55 service mysqld restart chkconfig mysqld on mysql_upgrade –password=1234 yum replace php –replace-with php53u […]

PHP-FPM seg错误,我怎么知道为什么?

我有一个通过PHP-FPM运行php的Nginx。 当我做一个phpinfo()该网站显示了很好,但是当我运行我的PHP代码(这适用于我有一个虚拟机,这是一个亚马逊EC2实例)它seg故障。 错误消息不是很具描述性。 有没有办法找出为什么我的代码是导致php-fpm段错误? 这是来自php-fpm error.log的错误 [2011年5月12日21时04分45秒]警告:[池www]孩子2447退出信号11(SIGSEGV)后4026.581320秒从开始[12-May-2011 21:04:45]注意:[池www]小孩2623开始了

PHP 5.3.6是否包含php-fpm?

我只是在amazon linux beta上做了一个yum的安装。 (这与centos,jfyi相似) PHP -V显示其PHP 5.3.6。 真棒如此。 现在我想弄清楚我是否可以安装php-fpm。 无法find任何具体的FPM。 doc说包含它,但似乎它可能需要编译。 我没有看到yum安装php-fpm让我的生活更轻松。 🙂 所以如果你知道如何请引导我。 或者如果我们需要编译,我将不胜感激完整的configuration参数来帮助我一下。 在编译时我不想错过任何重要的东西。 预先感谢你,需要睡觉

php-fpm不能工作几天,返回'没有指定input文件'

我的服务器运行ubuntu 64bit,nginx,php-fpm。 一切正常。 但几天后。 浏览器显示“没有指定input文件”。 我重新启动php-fpm之后。 一切运行良好。 但是这种情况一再发生。 所以我必须重新启动php-fpm几天。 任何人都知道有什么问题? nginx -V输出 sshadmin@ubuntu:~$ nginx -V nginx: nginx version: nginx/0.9.7 nginx: built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5) nginx: TLS SNI support enabled nginx: configure arguments: –user=www –group=www –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_module –with-http_gzip_static_module

nginx + php-fpm中的504错误:post请求

我有一个testing服务器nginx和php-fpm。 网站上的页面正常打开,但是当我想发送POST请求例如“现场授权”时,我得到“504网关超时错误”。 Nginx和php-fpm被configuration为默认设置。 什么可能是504的原因?

nginx php-fpm空的站点

我正在写这个,因为我整晚都试图修复它。 我们最近已经迁移到一个新的服务器。 在迁移之前,我们一直在nginx + cgi(脚本)上运行我们的站点。 迁移后,我们决定尝试apache + mod_php。 这是相当可怕的,我想迁移回nginx,但这次我想用php-fpm(正如人们所说的那样很酷) 所以我确实遵循了一些指南,我想我做的一切正确。 以及我有我的旧的configuration文件的“服务器”部分,我审查和放置到新的configuration。 所以当我input我们的url时,我最终得到了一个空的网站。 (空白我的意思是空白页,没有字母,错误或任何东西。)在访问日志中有一些奇怪的错误,如: 123.242.148.54 – – [22 / Mar / 2012:06:08:11 +0200]“ – ”400 0“ – ”“ – 我的猜测是,PHP-FPM不工作,但不知道如何确认。 也许有些人可以提供一些帮助? 将不胜感激。 我的nginxconfiguration: user nginx; worker_processes 12; error_log /var/log/nginx/error.log; #error_log /var/log/nginx/error.log notice; #error_log /var/log/nginx/error.log info; pid /var/run/nginx.pid; events { worker_connections 4096; } http { include /etc/nginx/mime.types; […]

nginx上游:直接传递给另一台服务器上的PHP-FPM

背景:3台服务器,1台负载均衡器和2台PHP应用服务器。 我需要在2台应用程序服务器上安装nginx吗? 或者,我可以直接从负载平衡器传递到在应用程序服务器上运行的PHP-FPM吗?

nginx上默认服务器的空白wordpress页面

我最近升级到php 5.3的使用php-fpm的目的。 我所有的网站正在工作,除了默认的一个showimg空白页面。 在nginx.conf中定义如下。 什么是这个configuration的问题。 错误日志似乎没有任何报告。 user nginx; worker_processes 1; error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; events { worker_connections 2048; } http { include /etc/nginx/mime.types; default_type application/octet-stream; index index.html index.htm index.php; log_format main '$remote_addr – $remote_user [$time_local] $request ' '"$status" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; keepalive_timeout 65; client_max_body_size 4M; server { listen […]