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

Cannot restart php7.0-fpm

When I run the command sudo service php7.0-fpm restart I get nothing. Literally. It just goes to the next line instead of giving me the usual: php7.0-fpm stop/waiting php7.0-fpm start/running, process 27822 Same deal with start and stop options. If…
eComEvo
  • 1,011
  • 3
  • 20
  • 32
0
votes
1 answer

DNS inside PHP-FPM chroot jail on OpenBSD 6.0 running nginx 1.10.1, PHP 7.0.8, MariaDB 10.0.25 and MediaWiki 1.27.1

I'm running nginx 1.10.1 on OpenBSD 6.0 with the packages php-7.0.8p0, php-curl-7.0.8p0, php-fastcgi-7.0.8p0, php-gd-7.0.8p0, php-mcrypt-7.0.8p0, php-mysqli-7.0.8p0, mariadb-client-10.0.25v1 and mariadb-server-10.0.25p0v1. I have several MediaWiki…
Till Kraemer
  • 15
  • 1
  • 6
0
votes
0 answers

Wordpress on Nginx+php5-fpm+varnish+APC high CPU and memory usage

After days of debugging and tweaking around with settings, I'm getting exhausted & unable to find a solution. Kindly guide. I've the following server on DigitalOcean: 64GB Memory 8 Core processor 200GB SSD drive And I'm running a single Wordpress…
0
votes
1 answer

PHP version is 7.0 but getting "php7.0-fpm: unrecognized service"

I recently upgraded an Ubuntu 14.04 server to PHP 7.0. Everything seemed to go smoothly. However, even after a server reboot, if I do sudo service php7.0-fpm restart I get the error php7.0-fpm: unrecognized service When I run php -v I can see it is…
eComEvo
  • 1,011
  • 3
  • 20
  • 32
0
votes
1 answer

PHP serving wrong pages with Laravel

I have an absurd problem. I'm using Laravel for one of my projects. I was at Laravel v5.2.39 (and most Symfony packages were at v3.0.8 if that's relevant) and everything was working fine. After updating (with composer update) to Laravel v5.2.45, I…
Compizfox
  • 384
  • 1
  • 6
  • 18
0
votes
0 answers

Where to get additional information about php-fpm log messages?

Shortly: where can I get additional information about php-fpm log messages? Details I'm encountering some php-fpm issues, and with normal log level almost nothing is written in the log. So I set log level to debug to try and get additional…
Francesco Abeni
  • 575
  • 1
  • 4
  • 14
0
votes
1 answer

Why does php5-fpm execution slow down only when multiple wordpress sites are active?

I'm using a LEMP stack, with separate php5-fpm pools for two wp pages. Both nginx and php5-fpm pool config files are identical except for site and the socket names. I do static pools with 2 workers each. The observed phenomena are the following: …
Barney Szabolcs
  • 171
  • 1
  • 7
0
votes
0 answers

After some time of correct working PHP can't execute any system command

I'm setting a new web server. I have NGINX with php-fpm on ubuntu 16.04. Everything works great except one thing: after 2-3 days of correct working PHP can't run any external system command. What do i mean when i say "system command"? For example…
user2265529
  • 133
  • 1
  • 5
0
votes
1 answer

nginx FastCGI sent in stderr: "Primary script unknown"

Been troubleshooting this for hours now. I've gone through every iteration of the question here on serverfault and tried everything. Nothing seems to be working. Basically all non-PHP works but any PHP script triggers *1 FastCGI sent in stderr:…
Rob
  • 2,393
  • 9
  • 33
  • 52
0
votes
1 answer

nginx fastcgi_cache http/https behind a reverse Proxy dosnt work the right way?

Community, i have a problem to figure out, the right configuration for the nginx fastcgi_cache. I have a small Wordpress-Site, it runs on a Virtual Machine, i am using nginx & php7 to serve the Site and nginx as a reverse Proxy that terminates SSL…
timrose
  • 33
  • 1
  • 5
0
votes
1 answer

Configuring nginx for a subdirectory without using a symlink

I've been trying to set up phpmyadmin on my nginx server using this outdated tutorial from DigitalOcean. The idea is to have the following configuration: http(s)://example.com => /usr/share/nginx/html http(s)://example.com/phpmyadmin =>…
alexw
  • 371
  • 3
  • 12
0
votes
2 answers

SELINUX disturb PHP7 to work fine

I am using a Server with Centos 7 and nginx, PHP5.4. I host Magento and everthing works well. And now I just remove the PHP5.4 which is installed and I install PHP7 and I also change everything what is needed listen =…
vTillmann
  • 11
  • 1
  • 8
0
votes
3 answers

nginx 404 handler in php ignores HTTP status

This is using nginx 1.6.3 and PHP 7.0.7 via PHP-FPM in CentOS 7.2. I have run many sites using LAMP and have been trying to switch to LEMP, but a sticking point that keeps coming up is that my page handler keeps showing 404 errors in the status,…
Mark Ormston
  • 111
  • 1
  • 6
0
votes
1 answer

Nginx location block equivalent in Apache (for passing to different php-fpm versions)

I need to have PHP 5 and 7 working concurrently because of the need to use two PHP extensions that are only built for exclusively versions 5 and 7. I've got this working with Nginx by naming the pages that call on the PHP 5 extension to e.g.…
whoasked
  • 269
  • 5
  • 12
0
votes
1 answer

Ubuntu 16.04, PHP-FPM times out at boot with libsodium-php module

The Issue (Modified: with REPRO STEPS!) To repro, spin up a new VPS with Ubuntu 16.04 (probably works with any Debian distro, but not tested) and follow these instructions: Through experimentation I boiled down the instructions to the absolute…
stevendesu
  • 113
  • 9