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

Apapche + php-fpm + mysql too slow on powerful server

I'm trying to test load a LAMP application that my team developed and deployed on AWS ubuntu 14.04 using jmeter. We are using AWS CDN to serve static files, mysql and apache are on the same host. When there is only one user doing stuff, the…
user388194
  • 51
  • 3
5
votes
3 answers

How do I start php7.0-fpm with supervisord?

I am trying to build a dockerized ubuntu 16.04lts with apache2 and nginx with php7.0-fpm Commands I have used but did not work [program:php-fpm7.0] command = /usr/sbin/php-fpm7.0 --daemonize --fpm-config…
uberrebu
  • 503
  • 6
  • 17
  • 36
5
votes
1 answer

php-fpm and nginx @ high CPU usage?

My server is with DigitalOcean with the following plan: 2 Core Processor 2 GB Memory My website is receiving thousands of visitors, however, both CPU cores are @ 100%: The issue seems to be with php-fpm and nginx: worker process. I've made dozens…
user5865490
  • 53
  • 1
  • 4
5
votes
1 answer

PHP unable to mail() in chroot though I can use sendmail inside chroot

I'm building a php-fpm chroot, and am on one of my last steps before calling this a success. The php-fpm chroot is working like a charm. Also, I have mini_sendmail installed into the chroot (in place of stock sendmail) and can confirm that it can…
David W
  • 3,453
  • 5
  • 36
  • 62
5
votes
1 answer

Preventing PHP-FPM from crashing under light load

I'm getting a DoS attack on a wordpress site that I host. 173.192.109.118 - - [30/Sep/2015:22:31:36 +0000] "POST /xmlrpc.php HTTP/1.0" 499 0 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)" I get about ~140 of these logs in my nginx access…
ryebread
  • 163
  • 1
  • 7
5
votes
3 answers

Proper Way of Setting Umask For php-fpm on Debian/Ubuntu

I'd like to set umask to 002 for the php-fpm process. I'm reading here and here that on Ubuntu/Debian it is supposed to be done by modifying the init script. I'm having doubts however that this is the proper way. Just thinking about the case…
Attila Fulop
  • 193
  • 1
  • 10
5
votes
2 answers

Nginx 1.6.3 to 1.8 upgrade

I'm on Linux Mint LMDE. I just receive a upgrade of nginx from 1.6.3 to 1.8.0 with aptitude and now, I got blank page on all my websites Here my configuration : server { listen 80; root /var/www/phpmyadmin; index…
Bouffe
  • 283
  • 1
  • 3
  • 10
5
votes
2 answers

Nginx & PHP-FPM: Query parameters won't be passed to PHP

I am currently setting up a machine for local development using Vagrant. Everything runs as it should, expect query parameters aren't passed to PHP on subpages. That means on www.example.com/?a=b, the query parameter is accessible, but on…
Sven
  • 151
  • 1
  • 1
  • 3
5
votes
2 answers

Multiple versions of PHP through nginx

EDIT: For future reference Multiple versions of PHP through nginx Nginx and different versions of PHP FPM + PHP I am running Ubuntu 14.10 with a LEMP stack using PHP 5.5.12. I have a number of legacy WordPress sites that require PHP 5.3.3…
myol
  • 181
  • 2
  • 2
  • 12
5
votes
2 answers

Serve a custom 404 page generated by PHP

Here is how my php-fpm config is: location @site { fastcgi_pass unix:/var/run/php5-fpm.sock; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root/index.php; fastcgi_intercept_errors on; error_page 404…
Matthieu Napoli
  • 421
  • 1
  • 5
  • 11
5
votes
2 answers

php-fpm use a lot of cpu

I use wordpress on Ubuntu 12.04 with Nginx + php-fpm on my VPS. There are 2 CPU cores + 4096Mb memory. I've moved mysql database to another server and set remote access. There are about 300 online visitors at once and php-fpm uses really a lot of…
Andrei Nikolaev
  • 95
  • 1
  • 2
  • 5
5
votes
1 answer

Is there a limit setting a php_admin_value in php-fpm?

I am trying to set a large value in the configuration of a pool in php-fpm, but at some point it just doesn't start anymore. php_admin_value[disable_functions] =…
PeeHaa
  • 221
  • 4
  • 18
5
votes
1 answer

Apache 2.4: mod_php vs php-fpm performance

There are plenty of old benchmarks on Apache mod_php vs nginx with php-fpm However, with version 2.4, Apache can use php-fpm. Are there any sensible benchmarks comparing mod_php with php-fpm (both on Apache 2.4.x)?
OC2PS
  • 539
  • 2
  • 9
  • 21
5
votes
5 answers

PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/gd.so' undefined symbol: gdImageWebpCtx in Unknown

We're running RHEL6 and just started getting this error when restarting php-fpm. PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/gd.so' - /usr/lib64/php/modules/gd.so: undefined symbol: gdImageWebpCtx in Unknown I've tried…
eisaacson
  • 525
  • 3
  • 8
  • 20
5
votes
2 answers

PHP-FPM is not displayed in phpinfo()

I have installed php-fpm on Centos + Apache using this manual - http://www.howtoforge.com/using-php5-fpm-with-apache2-on-centos-6.2-p2 but PHP-FPM is not displayed in phpinfo(). And I cannot figure out why. PHP-FPM process is installed and running…
Kelvin
  • 173
  • 1
  • 1
  • 6