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
6
votes
1 answer

PHP Session Storage in Fault Tolerant Memcached Pool

I recently had the opportunity to move a web application from using a Nginx proxy "loadbalancer" to an F5 loadbalancer. Unfortunately during that migration it became clear that the memcached session storage needed to move from the Nginx proxy…
Joe
  • 492
  • 4
  • 15
6
votes
2 answers

403 Forbidden when trying to access a folder in document root of nginx

When I access index.php, it works fine. But on localhost/pset7, it gives a 403. Here is the permission log, -rw-r--r--. 1 root root 51 Jul 31 14:21 index.html -rw-r--r--. 1 root root 51 Jul 31 14:15…
user1502
  • 171
  • 1
  • 1
  • 9
6
votes
2 answers

Directory for PHP 5 FPM socket files is deleted after reboot on Ubuntu Server

I've created a directory to store socket files for PHP 5 FPM: sudo mkdir /var/run/php-fpm. It is owned by root:root as well as core PHP FPM process. When PHP FPM is starting, it creates socket files for each pool inside of this directory and nginx…
Slava Fomin II
  • 1,701
  • 4
  • 17
  • 23
6
votes
1 answer

Munin dynamic graph zoom (dynazoom) not working (Nginx, PHP-FPM)

Debian 7.5 Nginx/1.6.0 PHP 5.6.0RC2 (fpm-fcgi) (built: Jul 11 2014 08:17:52) Munin v2.0.21-2 I been searching all over the net for a few days for answers to my problem but it seems like no one knows what to do about it. I got Munin up and running…
Bobby100
  • 61
  • 1
  • 2
6
votes
3 answers

Is it possible to extend a 504 timeout in nginx on a per location basis

Is it possible to set timeout directives within a location block to prevent nginx returning a 504 from a long running PHP script (PHP-FPM)? server { listen 80; server_name ubuntu-vm.test-api; root /home/me/Sites/path/to/site/; index…
codecowboy
  • 1,307
  • 7
  • 18
  • 31
6
votes
2 answers

SPDY & Nginx upload issues

I have this setting: an Nginx server with php-fpm and the http://blueimp.github.io/jQuery-File-Upload/ When I try to upload a file after about 10MB it fails. This happens when SPDY is activated. When SPDY is turned off upload works fine. Is anyone…
Alex Flo
  • 1,761
  • 3
  • 18
  • 23
6
votes
2 answers

nginx with php-fpm downloading php files rather than executing them on mac os x (local environment)

I'm having trouble getting PHP files to execute on my local development machine. I seem to have successfully installed nginx and php-fpm also seems to be correctly installed, and running but can't quite work out why PHP files are being downloaded…
Oliver Tappin
  • 129
  • 1
  • 1
  • 7
6
votes
4 answers

How to enable OPcache in Debian?

Just installed php5-fpm. All sources say that apc module has been replaced with OPcache and it's compiled by default but not enabled. How can I enable this module. I can not find opcache.so file on my server I have checked /usr/lib/php5 and…
user189078
  • 225
  • 2
  • 4
  • 7
6
votes
2 answers

FastCGI: comm with server ... aborted: idle timeout (30 sec)

I have multiple virtual webs running Wordpress but this one started to throw errors and I am unable to find the problem. Apache says: [Tue Jul 30 14:13:40 2013] [error] [client 82.100.0.70] FastCGI: comm with server…
Bruce
  • 407
  • 2
  • 6
  • 13
6
votes
1 answer

pool www exited on signal 15 (SIGTERM): execution timed out

I'm running Drupal 6 with Nginx 1.5.1 and PHP-FPM (PHP 5.3.26) on a 1GB single core VPS with 3GB of swap space on SSD storage. I just switched from shared hosting to this unmanaged VPS because my site was getting too heavy, so I'm still learning the…
rahim123
  • 355
  • 1
  • 4
  • 13
6
votes
4 answers

Which php5-fpm setting for high number of concurrent connections + nginx

Please help me tweak my config for php5-fpm and nginx. The problem is my php5-fpm log keeps reporting slow scripts and killing a child thread. Dedicated server, quad xeon, 32Gb Ram. 1 php application / site running. Php application: Nutshell,…
B p
  • 83
  • 1
  • 2
  • 5
6
votes
1 answer

Do we need to explicitly pass php.ini's location to php-fpm?

I am seeing a strange issue where my php.ini is not used if I do not explicitly pass it to php-fpm when starting it. This is the upstart script I am using: start on (filesystem and net-device-up IFACE=lo) stop on runlevel [016] pre-start script …
F21
  • 706
  • 3
  • 11
  • 20
6
votes
6 answers

How to keep programs from source up to date?

I'm designing a new server setup for hosting multiple websites. (Shared hosting for my clients over at SliceHost.) I've recently moved away from the traditional LAMP setup and chosen Ubuntu, Nginx, php-fpm and mysql. I like it a lot better then my…
reconbot
  • 2,455
  • 3
  • 25
  • 30
6
votes
1 answer

nginx yet another rewrite or internal redirection cycle

Yet another redirection cycle, yes. Have looked at other questions, but just can't seem to get it to work. server { listen 80; server_name localhost; charset utf-8; access_log …
tomsseisums
  • 205
  • 1
  • 2
  • 10
6
votes
2 answers

PHP-FPM and continuos "exited on signal 11"

I've a Hp web server with Xeon E5504 2ghz and 8gb ram, with freebsd 8.2-p9 amd64, nginx 1.2.1, PHP 5.3.14, mysql 5.5.25, apc, memcached and other package installed using freebsd ports. (conf file at the end of that message) My trouble are simple,…
RedFoxy Darrest
  • 81
  • 1
  • 1
  • 4