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

Nginx reverse proxy losts connection to PHP container after upgrade

I have two containers inside a Rancher stack. One is php-fpm container which is serving an application. The second one is Nginx acting as a reverse proxy. The nginx has following configurations mounted: /etc/nginx/nginx.conf user…
0
votes
0 answers

PHP FPM Still Requires "Other" Permission on Folder

With NGINX and PHP-FPM, I'm having trouble configuring it for my web directory with the proper security. I have a user and group called example.com and they are chowned on /home/example.com/*. I want to run the PHP-FPM context under that. I then ran…
ServerChecker
  • 1,518
  • 2
  • 14
  • 35
0
votes
2 answers

Custom URL's Nginx & PHP

Wondering if anyone can help me with a problem im having setting up custom url's Currently got an AWS EC2 instance which I've installed Nginx & PHP(FPM) onto as web server and I've configure it work fine with regular files however im being asked to…
Rlemm1991
  • 101
  • 1
0
votes
1 answer

Tell nginx to use different PHP process on random "502 Bad Gateway"

On a webserver, that usually works quite well with nginx and php-fpm (currently version 7.0.22, but this is mostly independet from the version), there are times when a 502 Bad Gateway occurs. This sually means: One of the php-fpm processes has…
BurninLeo
  • 900
  • 3
  • 12
  • 30
0
votes
0 answers

Any way to stop Nginx from appending path to alias?

I have a VM running for development, in this VM I have nginx running on an internal IP (so no hostname) and as such all I can work with is locations rather than separate servers. The server itself has root /var/www/html;, one of my locations,…
Ieuan
  • 111
  • 4
0
votes
1 answer

Low req/s ratio on EC2 machine on PHP Hello World

I’m having a problem with AWS. Im using Elastic Container Service that is created as on link https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html Instance type is t2.xlarge…
Ante Braovic
  • 101
  • 1
0
votes
0 answers

PHP FastCGI still runs under www-data user

Ubuntu 16.04.1 Apache/2.4.18 PHP 5.6.32 I am trying to make a separate pool for each virtual host. So I created site1.config in /etc/php/5.6/fpm/pool.d: [site1] user = site1 group = site1 listen = /var/run/php/php5.6-fpm-site1.sock listen.owner =…
Martin Dimitrov
  • 113
  • 1
  • 8
0
votes
1 answer

2 of 16 cores are constantly maxing out CPU capacity - why?

I have nginx with php-fpm running on a 16 core Ubuntu 16.04 instance. The server is handling more than 10 million requests per hour. As you can see on the htop screenshot cores 6 and 7 are maxed out and that's the case constantly - even after…
Raffael
  • 689
  • 7
  • 15
0
votes
1 answer

Ubuntu 17.04 with MariaDB-10.2.11 unable to update 1 table (only) from remote php script

first let me introduce my setup 2 servers 1. for web, with apache (php7) and nginx(php7-fpm) + local mysql (ubuntu 16.10) 2. mysql MariaDB-10.2.11 server for server 1 (ubuntu 17.04) The first server is running on the end of it's IO performance so I…
Joakim
  • 39
  • 2
  • 7
0
votes
1 answer

Nginx rewrite URI to remove a prefix?

I have a slim application that I would like to place under a directory path on a domain. Currently I have it working fine using the default slim file provided, but I would like to put a rewrite rule. The rewrite rule I want is that only any url…
Raiden616
  • 119
  • 3
  • 9
0
votes
2 answers

nginx rewrite : [emerg] unknown "0" variable

1.) Apache Rule: RewriteRule ^(.*)/(.*).htm$ /inner.php?Categories=$0&Title=$1 [L,QSA] 2.) After converting to nginx: rewrite ^/(.*)/(.*).htm$ /inner.php?Categories=$0&Title=$1 break; Question: When user access this page…
0
votes
2 answers

Nginx reverse proxy to apache won't allow query strings in Wordpress admin

I'm running Wordpress on a DigitalOcean droplet, it was working fine with an apache server but I put it behind an Nginx reverse proxy to serve static files better. The front-end website works but I'm having problems with the wp-admin area. I can…
0
votes
2 answers

NGINX and PHP-FPM 502 bad gateway

Ok so here is the situation, we currently have a server and we are now migrating to AWS. We have somehow identical configuration and we already tried to run apache benchmark so the PHP-FPM pool is somehow optimize as far as I know. But after we…
Rei
  • 23
  • 2
  • 7
0
votes
1 answer

PHP-FPM Slow Log ERROR: failed to ptrace(ATTACH) child: Operation not permitted (1)

I am running CentOS 7 with Nginx/PHP-FPM. To debug a couple of slow Wordpress and CodeIgniter requests I activated PHP-FPMs slow log feature in www-pool.conf: slowlog = /var/log/php-fpm/www-slow.log request_slowlog_timeout = 4s The slow requests…
travisbotello
  • 23
  • 1
  • 7
0
votes
0 answers

502 bad gateway error nginx connection reset by peer

I've been getting timeouts caused by a 502 bad gateway error on certain GET requests. I've tried adding these lines to my nginx site conf file: server { client_max_body_size 500M; client_header_timeout 3000; client_body_timeout 3000; …
eComEvo
  • 1,011
  • 3
  • 20
  • 32