Questions tagged [php-fpm]

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

PHP-FPM provides a number of useful features over the traditional FastCGI php implementation. It is implemented as a daemon that controls one or more PHP process 'pools' which can be independently configured. Main configuration options for each pool include:

  • Socket on which requests are received (either local or TCP)
  • Separate php.ini settings for specific application requirements
  • Dynamic process control. FPM can dynamically change the number of worker processes depending on pool load.
  • Uid/gid for the pool workers
  • In-flight configuration updates - a change to the pool configuration will be rolled out gracefully across all pool workers without losing connections.
2118 questions
9
votes
5 answers

Nginx/FPM/PHP all php files say 'File not found.'

i just installed nginx 1.1.13 and php 5.4.0 on a centos 5.8 final 64bit machine. Nginx and PHP/Fpm are running, and I can run php scripts via ssh command line, but in the browser I keep getting 'File not found.' errors on all my PHP files. This is…
Mr.Boon
  • 1,471
  • 4
  • 24
  • 43
8
votes
5 answers

Apache: "File Not Found" after setting up php-fpm chroot

I'm struggling with the final step in implementing a chroot on php-fpm with Apache 2.4 running on CentOS 7. I've successfully setup and tested the php-fpm connection without the chroot. But as soon as I add the chroot directive into my conf file in…
David W
  • 3,453
  • 5
  • 36
  • 62
8
votes
6 answers

Php-fpm status page is not displayed

I've try to get php-fpm status page. When i open /status page in a web browser or directly to fcgi - it says File not found. Could you help - how to fix this. # grep -ER "status|ping" /etc/php5/* | grep -v…
BaZZiliO
  • 310
  • 1
  • 2
  • 12
8
votes
2 answers

PHP FPM keeps hanging

I have tried all sorts of options but every couple days (mostly every day) FPM stops serving pages and I get a 502 (from cherokee webserver) The logs are filled with the following: [15-Sep-2014 10:17:46] WARNING: [pool www] child 10135 exited on…
dogmatic69
  • 340
  • 1
  • 6
  • 18
8
votes
1 answer

Requests are never queued after pm.max_children with Nginx and PHP-FPM

As soon as a pool reached pm.max_children, Nginx starts timing out when trying to send new requests to PHP-FPM. "max listen queue" is always 0 in the php-status page. PHP-FPM 5.5.16 Nginx 1.6.1 Here is the example for a php-fpm…
pembo13
  • 81
  • 1
  • 2
8
votes
2 answers

real solution for `No input file specified.` (nginx, fpm)

Most answers to this question are, set fastcgi_param SCRIPT_FILENAME and it will work (italic formatting is broken?!). I have set this variable (correct) but it still shows the error instead of a 404 page, because the root of the problem is…
Daniel W.
  • 1,609
  • 4
  • 26
  • 48
8
votes
3 answers

Mysterious error with php5-fpm

I'm having a very difficult case with latest php5-fpm (from debphp) and nginx 1.4.3 on Ubtuntu 12.04LTS. In short, I cannot start php5-fp at all, I keep getting this error in syslog: kernel: [1213013.564441] init: php5-fpm main process (7357)…
mr1031011
  • 215
  • 1
  • 3
  • 8
8
votes
4 answers

Is it possible to set up PHP-FPM with different pool-options (xdebug enabled / xdebug disabled)

I've a LEMP environment and need the option to separate all development subdomains from staging (development with xdebug staging without). dev.projectX.mydomain.tld staging.projectX.mydomain.tld Therefore I set up two pools php-dev and php-stage,…
8
votes
5 answers

Nginx editing php.ini changes no reflecting

phpinfo says the file location is /etc/php5/fpm/php.ini. Additional .ini files parsed /etc/php5/fpm/conf.d/curl.ini, /etc/php5/fpm/conf.d/gd.ini, /etc/php5/fpm/conf.d/mcrypt.ini, /etc/php5/fpm/conf.d/mysql.ini, …
Case
  • 311
  • 1
  • 4
  • 14
8
votes
2 answers

Nginx ignoring client's HTTP 1.0 request and respond by HTTP 1.1

I am testing using nginx/php5-fpm, with the code
Ryan
  • 5,831
  • 24
  • 72
  • 91
8
votes
3 answers

Apache + PHP-FPM = random "Error parsing script headers" + Seg Faults

I have PHP-FPM setup with Apache 2.4 using proxy_fcgi, all works fine, but every one in 4-6 requests, Apache returns a blank page. This happens on my main site http://danielhe.com/, but not subdomain vhosts. This shows up Apache's error log, [client…
dancom96
8
votes
4 answers

Can I globally set $_SERVER['REDIRECT_URL'] before script execution?

I'm in the process of migrating many sites from an old to a new server configuration. Each site is based on a similar (but sadly not identical) codebase, using mod_rewrite URLs. Ubuntu 8.04 LTS => Ubuntu 12.04 LTS Apache 2.22.8 => Apache 2.2.22 PHP…
Barry
  • 181
  • 1
  • 3
8
votes
2 answers

Nginx and PHP-FPM running out of connections

I keep running into errors like these, [02-Jun-2012 01:52:04] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 19 idle, and 49 total children [02-Jun-2012…
E3pO
  • 191
  • 1
  • 2
  • 4
8
votes
1 answer

Resource temporarily unavailable while connecting to upstream (php5-fpm)

I frequently get this error on random pages when the are like ~+10K connections (netstat -an |grep 80 |wc -l). This happens while there is still +10GB of free memory and server load is less than 3. My relevant…
alfish
  • 3,127
  • 15
  • 47
  • 71
8
votes
3 answers

Php5-fpm Crash if much visitors

I decided to change my OP to Nginx from Litespeed because i read much about the low resource that Nginx would cost. Im running a Wordpress site with 500 users online Okay thanks Guys for that much help :) I edited some things. I have some questions…
chillah
  • 101
  • 1
  • 1
  • 5